mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
kernel: services: update some debug comments
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
7843189c45
commit
fa23cfa88b
1 changed files with 4 additions and 4 deletions
|
|
@ -785,17 +785,17 @@ impl SystemServices {
|
||||||
mut new_tid: TID,
|
mut new_tid: TID,
|
||||||
can_resume: bool,
|
can_resume: bool,
|
||||||
) -> Result<TID, xous_kernel::Error> {
|
) -> Result<TID, xous_kernel::Error> {
|
||||||
// println!("Activating PID {}, context {}", new_pid, new_tid);
|
|
||||||
let previous_pid = self.current_pid();
|
let previous_pid = self.current_pid();
|
||||||
// println!(
|
// println!(
|
||||||
// "KERNEL({}): Activating process {} thread {}",
|
// "KERNEL({},{}): Activating process {} thread {}",
|
||||||
// previous_pid, new_pid, new_tid
|
// previous_pid, previous_tid, new_pid, new_tid
|
||||||
// );
|
// );
|
||||||
|
|
||||||
// Save state if the PID has changed. This will activate the new memory
|
// Save state if the PID has changed. This will activate the new memory
|
||||||
// space.
|
// space.
|
||||||
if new_pid != previous_pid {
|
if new_pid != previous_pid {
|
||||||
let new = self.get_process_mut(new_pid)?;
|
let new = self.get_process_mut(new_pid)?;
|
||||||
|
// println!("New state: {:?}", new.state);
|
||||||
|
|
||||||
// Ensure the new process can be run.
|
// Ensure the new process can be run.
|
||||||
match new.state {
|
match new.state {
|
||||||
|
|
@ -830,7 +830,7 @@ impl SystemServices {
|
||||||
return Err(xous_kernel::Error::ProcessNotFound);
|
return Err(xous_kernel::Error::ProcessNotFound);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// println!(" -- picked context {}", new_context);
|
// println!(" -- picked thread {}", new_tid);
|
||||||
} else if x & (1 << new_tid) == 0 {
|
} else if x & (1 << new_tid) == 0 {
|
||||||
println!(
|
println!(
|
||||||
"thread is {:?}, which is not valid for new thread {}",
|
"thread is {:?}, which is not valid for new thread {}",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue