From 287ad58c8a2886b223757d6ae7f06197e6dca08e Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 8 Apr 2024 12:39:52 +0800 Subject: [PATCH] add the swapper PID as a constant --- loader/src/consts.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loader/src/consts.rs b/loader/src/consts.rs index 154e81a26..3c8e1cadb 100644 --- a/loader/src/consts.rs +++ b/loader/src/consts.rs @@ -15,3 +15,6 @@ pub const KERNEL_LOAD_OFFSET: usize = 0xffd0_0000; pub const KERNEL_STACK_PAGE_COUNT: usize = 1; pub const KERNEL_ARGUMENT_OFFSET: usize = 0xffc0_0000; pub const GUARD_MEMORY_BYTES: usize = 3 * crate::PAGE_SIZE; + +#[cfg(feature = "swap")] +pub const SWAPPER_PID: u8 = 2;