Skip to content
Snippets Groups Projects
Unverified Commit d502418e authored by uuuvn's avatar uuuvn
Browse files

Fix aarch64

parent a9bdb51d
No related branches found
No related tags found
1 merge request!217Fix aarch64
...@@ -13,7 +13,7 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) { ...@@ -13,7 +13,7 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) {
for (id, context_lock) in crate::context::contexts().iter() { for (id, context_lock) in crate::context::contexts().iter() {
if target_id.map_or(false, |target_id| *id != target_id) { continue; } if target_id.map_or(false, |target_id| *id != target_id) { continue; }
let context = context_lock.read(); let context = context_lock.read();
println!("{}: {}", (*id).into(), context.name.read()); println!("{}: {}", (*id).into(), context.name);
println!("status: {:?}", context.status); println!("status: {:?}", context.status);
if ! context.status_reason.is_empty() { if ! context.status_reason.is_empty() {
...@@ -88,7 +88,7 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) { ...@@ -88,7 +88,7 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) {
for (id, context_lock) in crate::context::contexts().iter() { for (id, context_lock) in crate::context::contexts().iter() {
if target_id.map_or(false, |target_id| *id != target_id) { continue; } if target_id.map_or(false, |target_id| *id != target_id) { continue; }
let context = context_lock.read(); let context = context_lock.read();
println!("{}: {}", (*id).into(), context.name.read()); println!("{}: {}", (*id).into(), context.name);
// Switch to context page table to ensure syscall debug and stack dump will work // Switch to context page table to ensure syscall debug and stack dump will work
if let Some(ref space) = context.addr_space { if let Some(ref space) = context.addr_space {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment