kernel: remove unused debug data

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-10-04 19:08:29 +08:00
parent 8be5855ea3
commit d4f0496371
3 changed files with 9 additions and 12 deletions

View file

@ -142,12 +142,12 @@ pub extern "C" fn kmain() {
match pid { match pid {
Some(pid) => { Some(pid) => {
#[cfg(feature = "debug-print")] #[cfg(feature = "debug-print")]
println!("Attempting to switch to PID {}", pid); // println!("Attempting to switch to PID {}", pid);
xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0)).expect("couldn't switch to pid"); xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0)).expect("couldn't switch to pid");
} }
None => { None => {
#[cfg(feature = "debug-print")] #[cfg(feature = "debug-print")]
println!("No runnable tasks found. Entering idle state..."); // println!("No runnable tasks found. Entering idle state...");
// Special case for testing: idle can return `false` to indicate exit // Special case for testing: idle can return `false` to indicate exit
if !arch::idle() { if !arch::idle() {
return; return;

View file

@ -854,7 +854,7 @@ impl SystemServices {
// the list of ready contexts. // the list of ready contexts.
new.state = match new.state { new.state = match new.state {
ProcessState::Setup(thread_init) => { ProcessState::Setup(thread_init) => {
println!("Setting up new process..."); // println!("Setting up new process...");
ArchProcess::setup_process(new_pid, thread_init) ArchProcess::setup_process(new_pid, thread_init)
.expect("couldn't set up new process"); .expect("couldn't set up new process");

View file

@ -576,17 +576,14 @@ pub fn handle_inner(pid: PID, tid: TID, call: SysCall) -> SysCallResult {
); );
SWITCHTO_CALLER = Some((pid, tid)); SWITCHTO_CALLER = Some((pid, tid));
} }
println!( // println!(
"Activating process thread {} in pid {} coming from pid {} thread {}", // "Activating process thread {} in pid {} coming from pid {} thread {}",
new_context, new_pid, pid, tid // new_context, new_pid, pid, tid
); // );
let result = ss let result = ss
.activate_process_thread(tid, new_pid, new_context, true) .activate_process_thread(tid, new_pid, new_context, true)
.map(|_ctx| { .map(|_ctx| xous_kernel::Result::ResumeProcess);
println!("switchto ({}, {})", pid, _ctx); // println!("Done activating process thread: {:?}", result);
xous_kernel::Result::ResumeProcess
});
println!("Done activating process thread: {:?}", result);
result result
}), }),
SysCall::ClaimInterrupt(no, callback, arg) => { SysCall::ClaimInterrupt(no, callback, arg) => {