Kernel: Canonicalize vaddr before using it
This commit is contained in:
parent
5e396851f4
commit
4f25c20c97
|
@ -580,8 +580,9 @@ namespace Kernel
|
|||
vaddr |= (uint64_t)pdpte << 30;
|
||||
vaddr |= (uint64_t)pde << 21;
|
||||
vaddr |= (uint64_t)pte << 12;
|
||||
vaddr = canonicalize(vaddr);
|
||||
ASSERT(reserve_page(vaddr));
|
||||
return canonicalize(vaddr);
|
||||
return vaddr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue