clean up more debug messages

This commit is contained in:
bunnie 2021-04-30 23:33:35 +08:00
parent 260b154741
commit 48074b626b
4 changed files with 7 additions and 9 deletions

View file

@ -203,10 +203,10 @@ pub extern "C" fn trap_handler(
.take()
.expect("got an instruction page fault with no previous PID")
};
println!(
"ISR: Resuming previous pair of ({}, {})",
previous_pid, previous_context
);
// println!(
// "ISR: Resuming previous pair of ({}, {})",
// previous_pid, previous_context
// );
// Switch to the previous process' address space.
SystemServices::with_mut(|ss| {
ss.finish_callback_and_resume(previous_pid, previous_context)
@ -231,7 +231,7 @@ pub extern "C" fn trap_handler(
loop {}
} else {
let irqs_pending = sip::read();
println!("irqs: {:x}", irqs_pending);
// println!("irqs: {:x}", irqs_pending);
// Safe to access globals since interrupts are disabled
// when this function runs.

View file

@ -27,7 +27,7 @@ pub fn current_pid() -> PID {
unimplemented!();
}
pub fn init(resume: bool) {}
pub fn init() {}
pub mod syscall {
use crate::arch::Context;

View file

@ -156,8 +156,7 @@ pub extern "C" fn kmain() {
match pid {
Some(pid) => {
// #[cfg(feature = "debug-print")]
// klog!("switching to pid {}", pid);
#[cfg(feature = "debug-print")]
println!("switching to pid {}", pid);
xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0))
.expect("couldn't switch to pid");

View file

@ -532,7 +532,6 @@ impl SystemServices {
// Activate the current context
arch_process.set_thread(arch::process::IRQ_TID).unwrap();
// println!("Invoking...");
// Construct the new frame
arch::syscall::invoke(
arch_process.current_thread_mut(),