diff --git a/kernel/src/arch/mipsel/paging.rs b/kernel/src/arch/mipsel/paging.rs index 79318ec..2eb7513 100644 --- a/kernel/src/arch/mipsel/paging.rs +++ b/kernel/src/arch/mipsel/paging.rs @@ -131,7 +131,7 @@ impl InactivePageTable for InactivePageTable0 { } fn edit(&mut self, f: impl FnOnce(&mut Self::Active) -> T) -> T { - let pt: *MIPSPageTable = self.token() as *MIPSPageTable; + let pt: *mut MIPSPageTable = self.token() as *mut MIPSPageTable; let active = ActivePageTable( TwoLevelPageTable::new(&mut *pt), ::core::mem::uninitialized()