We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in arch/riscv32/paging.rs // Set kernel identity map p2[0x40].set(Frame::of_addr(PhysAddr::new(0x10000000)), ......); p2[KERNEL_PML4].set(Frame::of_addr(PhysAddr::new((KERNEL_PML4 as u32) << 22)),......); p2[KERNEL_PML4 + 1].set(Frame::of_addr(PhysAddr::new((KERNEL_PML4 as u32 + 1) << 22)),......);
What's the meaning of these mappings?
@wangrunji0408
The text was updated successfully, but these errors were encountered:
0x40 -- 1^6 <<22 E.Q. 1^28 == 0x10000000 --1^28 后面又映射了两个4M 这样一共映射了12MB空间
Sorry, something went wrong.
No branches or pull requests
in arch/riscv32/paging.rs
// Set kernel identity map
p2[0x40].set(Frame::of_addr(PhysAddr::new(0x10000000)), ......);
p2[KERNEL_PML4].set(Frame::of_addr(PhysAddr::new((KERNEL_PML4 as u32) << 22)),......);
p2[KERNEL_PML4 + 1].set(Frame::of_addr(PhysAddr::new((KERNEL_PML4 as u32 + 1) << 22)),......);
What's the meaning of these mappings?
@wangrunji0408
The text was updated successfully, but these errors were encountered: