From 4602b81a2f31344186a1e8715c7610d7df5556ed Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 3 Aug 2022 11:08:49 -0600 Subject: [PATCH] Fix debugger when dumping kernel threads --- src/debugger.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);