mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-12 16:30:44 +00:00
Really clear the zero page.
This commit is contained in:
parent
4755f118df
commit
c3bb2eabf1
@ -1781,6 +1781,7 @@ bool SheepMem::Init(void)
|
||||
int page_size = getpagesize();
|
||||
if (vm_acquire_fixed((char *)zero_page, page_size) < 0)
|
||||
return false;
|
||||
memset((char *)zero_page, 0, page_size);
|
||||
if (vm_protect((char *)zero_page, page_size, VM_PAGE_READ) < 0)
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user