remap_kernel runs fine

toolchain_update
dzy 6 years ago
parent 21adebb203
commit bf3a67a7e4

@ -420,8 +420,12 @@ impl InactivePageTable for InactivePageTable0 {
} }
#[cfg(target_arch = "riscv64")] #[cfg(target_arch = "riscv64")]
fn token(&self) -> usize { fn token(&self) -> usize {
unimplemented!(); use bit_field::BitField;
0 // TODO info!("{}", self.root_frame.number());
let mut satp = self.root_frame.number();
satp.set_bits(44..60, 0); // AS is 0
satp.set_bits(60..64, satp::Mode::Sv48 as usize); // Mode is Sv48
satp
} }
fn alloc_frame() -> Option<usize> { fn alloc_frame() -> Option<usize> {

Loading…
Cancel
Save