Skip to content
Snippets Groups Projects
Commit ce5ad452 authored by Lioncash's avatar Lioncash
Browse files

kernel/vm_manager: Use the VAddr type alias in CarveVMA()

These two variables correspond to address ranges.
parent a03c644a
No related branches found
No related tags found
No related merge requests found
...@@ -264,8 +264,8 @@ ResultVal<VMManager::VMAIter> VMManager::CarveVMA(VAddr base, u64 size) { ...@@ -264,8 +264,8 @@ ResultVal<VMManager::VMAIter> VMManager::CarveVMA(VAddr base, u64 size) {
return ERR_INVALID_ADDRESS_STATE; return ERR_INVALID_ADDRESS_STATE;
} }
u64 start_in_vma = base - vma.base; VAddr start_in_vma = base - vma.base;
u64 end_in_vma = start_in_vma + size; VAddr end_in_vma = start_in_vma + size;
if (end_in_vma > vma.size) { if (end_in_vma > vma.size) {
// Requested allocation doesn't fit inside VMA // Requested allocation doesn't fit inside VMA
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment