define the swapper PID

This commit is contained in:
bunnie 2024-03-08 04:13:08 +08:00
parent 9008452a36
commit 505dce8343

View file

@ -55,6 +55,10 @@ pub const BASE_QUANTA_MS: u32 = 10;
pub const BOOKEND_START: &str = "_|TT|_";
pub const BOOKEND_END: &str = "_|TE|_";
/// Hard-wired PID of the swapper
#[cfg(feature = "swap")]
pub const SWAPPER_PID: u8 = 2;
#[cfg(not(any(target_os = "xous", target_os = "none")))]
use core::sync::atomic::AtomicU64;