mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-21 22:31:19 +00:00
SS: Apple Silicon Mac: without shared memory
This commit is contained in:
parent
11e88dd94f
commit
8cd260690c
@ -428,7 +428,7 @@
|
|||||||
|
|
||||||
/* Define if the __PAGEZERO Mach-O Low Memory Globals hack works on this
|
/* Define if the __PAGEZERO Mach-O Low Memory Globals hack works on this
|
||||||
system. */
|
system. */
|
||||||
/* #define PAGEZERO_HACK 1 */
|
#define PAGEZERO_HACK 1
|
||||||
|
|
||||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||||
#define RETSIGTYPE void
|
#define RETSIGTYPE void
|
||||||
|
@ -196,7 +196,7 @@ uint8 *RAMBaseHost; // Base address of Mac RAM (host address space)
|
|||||||
uint8 *ROMBaseHost; // Base address of Mac ROM (host address space)
|
uint8 *ROMBaseHost; // Base address of Mac ROM (host address space)
|
||||||
uint32 ROMEnd;
|
uint32 ROMEnd;
|
||||||
|
|
||||||
#if defined(__APPLE__) && defined(__x86_64__)
|
#ifdef __APPLE__
|
||||||
uint8 gZeroPage[0x3000], gKernelData[0x2000];
|
uint8 gZeroPage[0x3000], gKernelData[0x2000];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -921,7 +921,7 @@ int main(int argc, char **argv)
|
|||||||
goto quit;
|
goto quit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__APPLE__) || !defined(__x86_64__)
|
#ifndef __APPLE__
|
||||||
// Create areas for Kernel Data
|
// Create areas for Kernel Data
|
||||||
if (!kernel_data_init())
|
if (!kernel_data_init())
|
||||||
goto quit;
|
goto quit;
|
||||||
|
@ -206,7 +206,7 @@ const uintptr VMBaseDiff = NATMEM_OFFSET;
|
|||||||
static inline uint8 * vm_do_get_real_address(vm_addr_t addr)
|
static inline uint8 * vm_do_get_real_address(vm_addr_t addr)
|
||||||
{
|
{
|
||||||
uintptr a = vm_wrap_address(addr);
|
uintptr a = vm_wrap_address(addr);
|
||||||
#if defined(__APPLE__) && defined(__x86_64__)
|
#ifdef __APPLE__
|
||||||
extern uint8 gZeroPage[0x3000], gKernelData[0x2000];
|
extern uint8 gZeroPage[0x3000], gKernelData[0x2000];
|
||||||
if (a < 0x3000) return &gZeroPage[a];
|
if (a < 0x3000) return &gZeroPage[a];
|
||||||
else if ((a & ~0x1fff) == 0x68ffe000 || (a & ~0x1fff) == 0x5fffe000) return &gKernelData[a & 0x1fff];
|
else if ((a & ~0x1fff) == 0x68ffe000 || (a & ~0x1fff) == 0x5fffe000) return &gKernelData[a & 0x1fff];
|
||||||
|
Loading…
Reference in New Issue
Block a user