emmanuel maillard e.rsz@libertysurf.fr writes:
This patch remove granularity check in NtAllocateVirtualMemory for Darwin, because teb can be alloc at address < granularity_mask (0xffff)
This must be avoided, nothing should be allocated below 64K, the Windows API depends on that. You probably need to adapt the memory reservation code to reserve the low 64K on Darwin.