warning-clean. need to clean up the hosted mode flow a bit.

This commit is contained in:
bunnie 2022-01-07 23:22:12 +08:00
parent 75fe309059
commit 9fcd7e17ae
2 changed files with 3 additions and 0 deletions

View file

@ -44,6 +44,7 @@ pub fn handle(irqs_pending: usize) -> Result<xous_kernel::Result, xous_kernel::E
Ok(xous_kernel::Result::ResumeProcess)
}
#[allow(dead_code)] // needed to silence a hosted mode warning
pub fn for_each_irq<F>(op: F)
where
F: Fn(usize, &PID, MemoryAddress, Option<MemoryAddress>),

View file

@ -35,6 +35,7 @@ pub struct Test {
//kbd: Arc<Mutex<keyboard::Keyboard>>,
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(),
}
}