Fix debugger when dumping kernel threads

This commit is contained in:
Jeremy Soller
2022-08-03 11:08:49 -06:00
parent 3ba1b018b7
commit 4602b81a2f

View File

@@ -22,10 +22,9 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) {
// 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);