mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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()
|
.take()
|
||||||
.expect("got an instruction page fault with no previous PID")
|
.expect("got an instruction page fault with no previous PID")
|
||||||
};
|
};
|
||||||
println!(
|
// println!(
|
||||||
"ISR: Resuming previous pair of ({}, {})",
|
// "ISR: Resuming previous pair of ({}, {})",
|
||||||
previous_pid, previous_context
|
// previous_pid, previous_context
|
||||||
);
|
// );
|
||||||
// Switch to the previous process' address space.
|
// Switch to the previous process' address space.
|
||||||
SystemServices::with_mut(|ss| {
|
SystemServices::with_mut(|ss| {
|
||||||
ss.finish_callback_and_resume(previous_pid, previous_context)
|
ss.finish_callback_and_resume(previous_pid, previous_context)
|
||||||
|
|
@ -231,7 +231,7 @@ pub extern "C" fn trap_handler(
|
||||||
loop {}
|
loop {}
|
||||||
} else {
|
} else {
|
||||||
let irqs_pending = sip::read();
|
let irqs_pending = sip::read();
|
||||||
println!("irqs: {:x}", irqs_pending);
|
// println!("irqs: {:x}", irqs_pending);
|
||||||
|
|
||||||
// Safe to access globals since interrupts are disabled
|
// Safe to access globals since interrupts are disabled
|
||||||
// when this function runs.
|
// when this function runs.
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ pub fn current_pid() -> PID {
|
||||||
unimplemented!();
|
unimplemented!();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn init(resume: bool) {}
|
pub fn init() {}
|
||||||
|
|
||||||
pub mod syscall {
|
pub mod syscall {
|
||||||
use crate::arch::Context;
|
use crate::arch::Context;
|
||||||
|
|
|
||||||
|
|
@ -156,8 +156,7 @@ pub extern "C" fn kmain() {
|
||||||
|
|
||||||
match pid {
|
match pid {
|
||||||
Some(pid) => {
|
Some(pid) => {
|
||||||
// #[cfg(feature = "debug-print")]
|
#[cfg(feature = "debug-print")]
|
||||||
// klog!("switching to pid {}", pid);
|
|
||||||
println!("switching to pid {}", pid);
|
println!("switching to pid {}", pid);
|
||||||
xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0))
|
xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0))
|
||||||
.expect("couldn't switch to pid");
|
.expect("couldn't switch to pid");
|
||||||
|
|
|
||||||
|
|
@ -532,7 +532,6 @@ impl SystemServices {
|
||||||
// Activate the current context
|
// Activate the current context
|
||||||
arch_process.set_thread(arch::process::IRQ_TID).unwrap();
|
arch_process.set_thread(arch::process::IRQ_TID).unwrap();
|
||||||
|
|
||||||
// println!("Invoking...");
|
|
||||||
// Construct the new frame
|
// Construct the new frame
|
||||||
arch::syscall::invoke(
|
arch::syscall::invoke(
|
||||||
arch_process.current_thread_mut(),
|
arch_process.current_thread_mut(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue