mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-24 11:30:52 +00:00
rootless: reset low_mem_map on start
This commit is contained in:
parent
035bc98cbc
commit
fef996ed2f
@ -52,6 +52,7 @@ static const uint8 rootless_proc[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static uint32 rootless_proc_ptr = 0;
|
static uint32 rootless_proc_ptr = 0;
|
||||||
|
static uint32 low_mem_map = 0;
|
||||||
|
|
||||||
void InstallRootlessProc() {
|
void InstallRootlessProc() {
|
||||||
// Rootless mode support
|
// Rootless mode support
|
||||||
@ -62,6 +63,7 @@ void InstallRootlessProc() {
|
|||||||
rootless_proc_ptr = r.a[0];
|
rootless_proc_ptr = r.a[0];
|
||||||
printf("Installing rootless support: 0x%x\n", rootless_proc_ptr);
|
printf("Installing rootless support: 0x%x\n", rootless_proc_ptr);
|
||||||
Host2Mac_memcpy(rootless_proc_ptr, rootless_proc, sizeof(rootless_proc));
|
Host2Mac_memcpy(rootless_proc_ptr, rootless_proc, sizeof(rootless_proc));
|
||||||
|
low_mem_map = 0;
|
||||||
} else {
|
} else {
|
||||||
rootless_proc_ptr = 0;
|
rootless_proc_ptr = 0;
|
||||||
}
|
}
|
||||||
@ -151,8 +153,6 @@ void MaskRegion(uint32 regionPtr, bool in) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32 low_mem_map = 0;
|
|
||||||
|
|
||||||
uint32 GetLowMemOffset(uint32 addr) {
|
uint32 GetLowMemOffset(uint32 addr) {
|
||||||
if (low_mem_map == 0) {
|
if (low_mem_map == 0) {
|
||||||
abort();
|
abort();
|
||||||
|
Loading…
Reference in New Issue
Block a user