Merge pull request #69 from wei-huan/main

virtaddr -> usize high 256GB addrspace bug fix
ci-test
Yifan Wu 3 years ago committed by GitHub
commit df36cbe657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,7 +83,11 @@ impl From<PhysPageNum> for usize {
}
impl From<VirtAddr> for usize {
fn from(v: VirtAddr) -> Self {
v.0
if v.0 >= (1 << (VA_WIDTH_SV39 - 1)) {
v.0 | (!((1 << VA_WIDTH_SV39) - 1))
} else {
v.0
}
}
}
impl From<VirtPageNum> for usize {

Loading…
Cancel
Save