mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: remove unused debug data
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
8be5855ea3
commit
d4f0496371
3 changed files with 9 additions and 12 deletions
|
|
@ -142,12 +142,12 @@ pub extern "C" fn kmain() {
|
|||
match pid {
|
||||
Some(pid) => {
|
||||
#[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");
|
||||
}
|
||||
None => {
|
||||
#[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
|
||||
if !arch::idle() {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -854,7 +854,7 @@ impl SystemServices {
|
|||
// the list of ready contexts.
|
||||
new.state = match new.state {
|
||||
ProcessState::Setup(thread_init) => {
|
||||
println!("Setting up new process...");
|
||||
// println!("Setting up new process...");
|
||||
ArchProcess::setup_process(new_pid, thread_init)
|
||||
.expect("couldn't set up new process");
|
||||
|
||||
|
|
|
|||
|
|
@ -576,17 +576,14 @@ pub fn handle_inner(pid: PID, tid: TID, call: SysCall) -> SysCallResult {
|
|||
);
|
||||
SWITCHTO_CALLER = Some((pid, tid));
|
||||
}
|
||||
println!(
|
||||
"Activating process thread {} in pid {} coming from pid {} thread {}",
|
||||
new_context, new_pid, pid, tid
|
||||
);
|
||||
// println!(
|
||||
// "Activating process thread {} in pid {} coming from pid {} thread {}",
|
||||
// new_context, new_pid, pid, tid
|
||||
// );
|
||||
let result = ss
|
||||
.activate_process_thread(tid, new_pid, new_context, true)
|
||||
.map(|_ctx| {
|
||||
println!("switchto ({}, {})", pid, _ctx);
|
||||
xous_kernel::Result::ResumeProcess
|
||||
});
|
||||
println!("Done activating process thread: {:?}", result);
|
||||
.map(|_ctx| xous_kernel::Result::ResumeProcess);
|
||||
// println!("Done activating process thread: {:?}", result);
|
||||
result
|
||||
}),
|
||||
SysCall::ClaimInterrupt(no, callback, arg) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue