Rename canonical_addr to linear_addr since it makes more sense

This commit is contained in:
ssimnb 2026-04-07 09:15:43 +02:00
parent 0db98c358e
commit f3d5f4675f

View file

@ -17,8 +17,8 @@ extern uint64_t hhdmoffset;
// Get the page object which is associated with the page that the address `addr` resides in
struct page *get_page(void *addr){
void *canonical_addr = (void*)PAGE_ROUND_DOWN((uint64_t)addr);
uint64_t phys_addr = kget_phys_addr(canonical_addr);
void *linear_addr = (void*)PAGE_ROUND_DOWN((uint64_t)addr);
uint64_t phys_addr = kget_phys_addr(linear_addr);
if(phys_addr == 0){
return NULL;