Take the whole 64k page at 0x0.

This commit is contained in:
Ben Vanik 2015-06-23 18:06:37 -07:00
parent d335555277
commit fc7695f874
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ int Memory::Initialize() {
// Take the first page at 0 so we can check for writes. // Take the first page at 0 so we can check for writes.
heaps_.v00000000.AllocFixed( heaps_.v00000000.AllocFixed(
0x00000000, 4096, 4096, 0x00000000, 64 * 1024, 64 * 1024,
kMemoryAllocationReserve | kMemoryAllocationCommit, kMemoryAllocationReserve | kMemoryAllocationCommit,
!FLAGS_protect_zero ? kMemoryProtectRead | kMemoryProtectWrite !FLAGS_protect_zero ? kMemoryProtectRead | kMemoryProtectWrite
: kMemoryProtectNoAccess); : kMemoryProtectNoAccess);