mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
kernel: debug: fix wrap-print on xous target
When targeting the `xous` target, we were missing some variables due to them relying on `target_os="none"`. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
b43366e6ec
commit
30eb24af61
1 changed files with 4 additions and 4 deletions
|
|
@ -59,7 +59,7 @@ pub struct Uart {}
|
||||||
#[cfg(baremetal)]
|
#[cfg(baremetal)]
|
||||||
pub static mut UART: Uart = Uart {};
|
pub static mut UART: Uart = Uart {};
|
||||||
|
|
||||||
#[cfg(all(target_os = "none", feature = "wrap-print"))]
|
#[cfg(all(baremetal, feature = "wrap-print"))]
|
||||||
static mut CHAR_COUNT: usize = 0;
|
static mut CHAR_COUNT: usize = 0;
|
||||||
|
|
||||||
#[cfg(baremetal)]
|
#[cfg(baremetal)]
|
||||||
|
|
@ -143,8 +143,8 @@ impl gdbstub::Connection for Uart {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
not(test),
|
|
||||||
baremetal,
|
baremetal,
|
||||||
|
not(test),
|
||||||
any(feature = "debug-print", feature = "print-panics")
|
any(feature = "debug-print", feature = "print-panics")
|
||||||
))]
|
))]
|
||||||
pub fn irq(_irq_number: usize, _arg: *mut usize) {
|
pub fn irq(_irq_number: usize, _arg: *mut usize) {
|
||||||
|
|
@ -156,8 +156,8 @@ pub fn irq(_irq_number: usize, _arg: *mut usize) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
not(test),
|
|
||||||
baremetal,
|
baremetal,
|
||||||
|
not(test),
|
||||||
any(feature = "debug-print", feature = "print-panics")
|
any(feature = "debug-print", feature = "print-panics")
|
||||||
))]
|
))]
|
||||||
fn process_irq_character(b: u8) {
|
fn process_irq_character(b: u8) {
|
||||||
|
|
@ -266,7 +266,7 @@ fn process_irq_character(b: u8) {
|
||||||
println!("Xous Kernel Debug");
|
println!("Xous Kernel Debug");
|
||||||
println!("key | command");
|
println!("key | command");
|
||||||
println!("--- + -----------------------");
|
println!("--- + -----------------------");
|
||||||
#[cfg(all(feature = "gdbserver", target_os = "none"))]
|
#[cfg(all(feature = "gdbserver", baremetal))]
|
||||||
println!(" g | enter the gdb server");
|
println!(" g | enter the gdb server");
|
||||||
println!(" m | print MMU page tables of all processes");
|
println!(" m | print MMU page tables of all processes");
|
||||||
println!(" p | print all processes");
|
println!(" p | print all processes");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue