From 9fcd7e17ae0fd2bc0a9d8112f25d194400ff23cc Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 7 Jan 2022 23:22:12 +0800 Subject: [PATCH] warning-clean. need to clean up the hosted mode flow a bit. --- kernel/src/irq.rs | 1 + services/shellchat/src/cmds/test.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/kernel/src/irq.rs b/kernel/src/irq.rs index 9bd496220..953579e6e 100644 --- a/kernel/src/irq.rs +++ b/kernel/src/irq.rs @@ -44,6 +44,7 @@ pub fn handle(irqs_pending: usize) -> Result(op: F) where F: Fn(usize, &PID, MemoryAddress, Option), diff --git a/services/shellchat/src/cmds/test.rs b/services/shellchat/src/cmds/test.rs index 1345a07fe..1b1e7bb83 100644 --- a/services/shellchat/src/cmds/test.rs +++ b/services/shellchat/src/cmds/test.rs @@ -35,6 +35,7 @@ pub struct Test { //kbd: Arc>, oqc: oqc_test::Oqc, oqc_start: u64, + #[cfg(any(target_os = "none", target_os = "xous"))] jtag: jtag::Jtag, } impl Test { @@ -71,6 +72,7 @@ impl Test { //kbd: Arc::new(Mutex::new(keyboard::Keyboard::new(&xns).unwrap())), oqc: oqc_test::Oqc::new(&xns).unwrap(), oqc_start: 0, + #[cfg(any(target_os = "none", target_os = "xous"))] jtag: jtag::Jtag::new(&xns).unwrap(), } }