mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
clean up more debug messages
This commit is contained in:
parent
260b154741
commit
48074b626b
4 changed files with 7 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue