Rename canonical_addr to linear_addr since it makes more sense
This commit is contained in:
parent
0db98c358e
commit
f3d5f4675f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue