mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
These should return the raw values, rather than the Result values. Signed-off-by: Sean Cross <sean@xobs.io>
9 lines
158 B
Rust
9 lines
158 B
Rust
pub fn id() -> u32 {
|
|
if let Ok(pid) = crate::syscall::current_pid() {
|
|
pid.get() as u32
|
|
} else {
|
|
0
|
|
}
|
|
}
|
|
|
|
pub fn set_id(_id: u32) {}
|