[Memory] Allocate system heap memory from bottom of heap last quarter
Aka. From 0x30000000
This commit is contained in:
parent
0b183a3582
commit
1e369afa3d
|
@ -555,7 +555,7 @@ uint32_t Memory::SystemHeapAlloc(uint32_t size, uint32_t alignment,
|
|||
uint32_t address;
|
||||
if (!heap->AllocSystemHeap(
|
||||
size, alignment, kMemoryAllocationReserve | kMemoryAllocationCommit,
|
||||
kMemoryProtectRead | kMemoryProtectWrite, true, &address)) {
|
||||
kMemoryProtectRead | kMemoryProtectWrite, false, &address)) {
|
||||
return 0;
|
||||
}
|
||||
Zero(address, size);
|
||||
|
|
Loading…
Reference in New Issue