mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
improve debug output on swapper
This commit is contained in:
parent
cc49867403
commit
2c183c2e18
1 changed files with 2 additions and 1 deletions
|
|
@ -133,6 +133,7 @@ fn swap_handler(
|
||||||
let ss = unsafe { &mut *(shared_state as *mut SwapperSharedState) };
|
let ss = unsafe { &mut *(shared_state as *mut SwapperSharedState) };
|
||||||
|
|
||||||
let op: Option<Opcode> = FromPrimitive::from_usize(opcode);
|
let op: Option<Opcode> = FromPrimitive::from_usize(opcode);
|
||||||
|
writeln!(ss.duart, "got Opcode: {:?}", op).ok();
|
||||||
match op {
|
match op {
|
||||||
Some(Opcode::WriteToSwap) => {
|
Some(Opcode::WriteToSwap) => {
|
||||||
let pid = a2 as u8;
|
let pid = a2 as u8;
|
||||||
|
|
@ -152,7 +153,7 @@ fn swap_handler(
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
write!(ss.duart, "Unimplemented or unknown opcode: {}", opcode).ok();
|
writeln!(ss.duart, "Unimplemented or unknown opcode: {}", opcode).ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue