Round two.

This commit is contained in:
Curle 2021-06-18 22:19:41 +01:00
parent 47c447c5a7
commit 29ab9a5860
Signed by: TheCurle
GPG Key ID: 5942F13718443F79

View File

@ -227,7 +227,7 @@ void AddRangeToPhysMem(directptr_t Base, size_t Size) {
} else {
if((size_t) Base < (size_t) LOWER_REGION) {
size_t difference = (size_t) LOWER_REGION - (size_t) Base;
SerialPrintf("[ Mem] Base is 0x%p bytes away from the threshold, allocating 0x%p-0x%p to lower memory..\r\n", difference, Base, Base + difference);
SerialPrintf("[ Mem] Base is 0x%p bytes away from the threshold, allocating 0x%p-0x%p to lower memory..\r\n", difference, (size_t) Base, (size_t) Base + difference);
AddRangeToBuddy(&LowBuddy, Base, difference);
Base = (void*) LOWER_REGION;
Size = Size - difference;