Moving all physical allocs to A..., as games do stupid stuff when at E.

This commit is contained in:
Ben Vanik 2013-10-22 21:06:12 -07:00
parent 62d4d5ce84
commit 157cfd4d71
1 changed files with 8 additions and 7 deletions

View File

@ -241,13 +241,14 @@ uint32_t xeMmAllocatePhysicalMemoryEx(
} }
// Move the address into the right range. // Move the address into the right range.
if (protect_bits & X_MEM_LARGE_PAGES) { //if (protect_bits & X_MEM_LARGE_PAGES) {
base_address |= 0xA0000000; // base_address += 0xA0000000;
} else if (protect_bits & X_MEM_16MB_PAGES) { //} else if (protect_bits & X_MEM_16MB_PAGES) {
base_address |= 0xC0000000; // base_address += 0xC0000000;
} else { //} else {
base_address |= 0xE0000000; // base_address += 0xE0000000;
} //}
base_address += 0xA0000000;
return base_address; return base_address;
} }