diff --git a/src/debugger.rs b/src/debugger.rs index 4c644b7..8309ee6 100644 --- a/src/debugger.rs +++ b/src/debugger.rs @@ -22,10 +22,9 @@ pub unsafe fn debugger(target_id: Option) { // Switch to context page table to ensure syscall debug and stack dump will work if let Some(ref space) = context.addr_space { RmmA::set_table(space.read().table.utable.table().phys()); + check_consistency(&mut space.write()); } - check_consistency(&mut context.addr_space.as_ref().unwrap().write()); - println!("status: {:?}", context.status); if ! context.status_reason.is_empty() { println!("reason: {}", context.status_reason);