kernel: Various 64-bit fixes in memory/process/thread

This commit is contained in:
bunnei 2017-12-29 13:27:58 -05:00
parent 1d01ffccb8
commit ebd4b1422d
5 changed files with 14 additions and 14 deletions

View file

@ -167,7 +167,7 @@ VAddr Process::GetLinearHeapLimit() const {
return GetLinearHeapBase() + memory_region->size;
}
ResultVal<VAddr> Process::HeapAllocate(VAddr target, u32 size, VMAPermission perms) {
ResultVal<VAddr> Process::HeapAllocate(VAddr target, u64 size, VMAPermission perms) {
if (target < Memory::HEAP_VADDR || target + size > Memory::HEAP_VADDR_END ||
target + size < target) {
return ERR_INVALID_ADDRESS;