[Memory] Allocate system heap memory from bottom of heap last quarter
Aka. From 0x30000000
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user