mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
kernel: minor formatting cleanups
These files have had rustfmt run on them. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
516876a30f
commit
a75bc4f54c
2 changed files with 8 additions and 5 deletions
|
|
@ -45,7 +45,7 @@ pub unsafe fn set_isr_return_pair(pid: PID, tid: TID) {
|
||||||
PREVIOUS_PAIR = Some((pid, tid));
|
PREVIOUS_PAIR = Some((pid, tid));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature="gdb-stub")]
|
#[cfg(feature = "gdb-stub")]
|
||||||
pub unsafe fn take_isr_return_pair() -> Option<(PID, TID)> {
|
pub unsafe fn take_isr_return_pair() -> Option<(PID, TID)> {
|
||||||
PREVIOUS_PAIR.take()
|
PREVIOUS_PAIR.take()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -433,7 +433,11 @@ impl SystemServices {
|
||||||
entry.state = ProcessState::Ready(1 << INITIAL_TID);
|
entry.state = ProcessState::Ready(1 << INITIAL_TID);
|
||||||
}
|
}
|
||||||
// entry.ppid = _ppid;
|
// entry.ppid = _ppid;
|
||||||
klog!("created new process for PID {} with PPID {}", new_pid, _ppid);
|
klog!(
|
||||||
|
"created new process for PID {} with PPID {}",
|
||||||
|
new_pid,
|
||||||
|
_ppid
|
||||||
|
);
|
||||||
return Ok(startup);
|
return Ok(startup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1570,7 +1574,6 @@ impl SystemServices {
|
||||||
other
|
other
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
// log_process_update(file!(), line!(), process, old_state);
|
|
||||||
|
|
||||||
Ok(new_tid)
|
Ok(new_tid)
|
||||||
}
|
}
|
||||||
|
|
@ -2120,7 +2123,7 @@ impl SystemServices {
|
||||||
Ok(parent_pid)
|
Ok(parent_pid)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature="gdb-stub")]
|
#[cfg(feature = "gdb-stub")]
|
||||||
pub fn suspend_process(&mut self, pid: PID) -> Result<(), xous_kernel::Error> {
|
pub fn suspend_process(&mut self, pid: PID) -> Result<(), xous_kernel::Error> {
|
||||||
let (process_state, parent_pid) = {
|
let (process_state, parent_pid) = {
|
||||||
let process = self.get_process_mut(pid)?;
|
let process = self.get_process_mut(pid)?;
|
||||||
|
|
@ -2174,7 +2177,7 @@ impl SystemServices {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature="gdb-stub")]
|
#[cfg(feature = "gdb-stub")]
|
||||||
pub fn continue_process(&mut self, pid: PID) -> Result<(), xous_kernel::Error> {
|
pub fn continue_process(&mut self, pid: PID) -> Result<(), xous_kernel::Error> {
|
||||||
let process = self.get_process_mut(pid)?;
|
let process = self.get_process_mut(pid)?;
|
||||||
// let old_state = process.state;
|
// let old_state = process.state;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue