From fe0db3e29a44189e52a9f6b60d946deb9b06500f Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 5 May 2024 21:50:09 +0800 Subject: [PATCH] more stack space is needed due to the increased size of the RPT --- loader/src/consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/src/consts.rs b/loader/src/consts.rs index a2c6849ef..1a87b91a9 100644 --- a/loader/src/consts.rs +++ b/loader/src/consts.rs @@ -17,7 +17,7 @@ pub const KERNEL_ARGUMENT_OFFSET: usize = 0xffc0_0000; #[cfg(not(feature = "swap"))] pub const GUARD_MEMORY_BYTES: usize = 3 * crate::PAGE_SIZE; #[cfg(feature = "swap")] -pub const GUARD_MEMORY_BYTES: usize = 4 * crate::PAGE_SIZE; // this is bare minimum. Increase more if we want to do resume! +pub const GUARD_MEMORY_BYTES: usize = 7 * crate::PAGE_SIZE; // this is bare minimum. Increase more if we want to do resume! #[cfg(feature = "swap")] pub const SWAPPER_PID: u8 = 2;