From 0850e0d7afb5175df11c7482f3ab1086db12f9b1 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 23 Apr 2026 12:29:59 +0800 Subject: [PATCH] fix guard memory error in CI --- loader/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/src/lib.rs b/loader/src/lib.rs index d9b220f56..84eeb9a43 100644 --- a/loader/src/lib.rs +++ b/loader/src/lib.rs @@ -45,7 +45,7 @@ pub const GUARD_MEMORY_BYTES: usize = 3 * crate::PAGE_SIZE; #[cfg(all(feature = "swap", not(feature = "resume"), not(feature = "bao1x")))] pub const GUARD_MEMORY_BYTES: usize = 8 * crate::PAGE_SIZE; #[cfg(all(feature = "swap", not(feature = "resume"), feature = "bao1x"))] -pub const GUARD_MEMORY_BYTES: usize = 8 * crate::PAGE_SIZE; +pub const GUARD_MEMORY_BYTES: usize = 9 * crate::PAGE_SIZE; /// Amount of space for loader stack plus clean suspend, with swap. +1 page cost for the loading bar graphics #[cfg(all(feature = "swap", feature = "resume"))] pub const GUARD_MEMORY_BYTES: usize = 9 * crate::PAGE_SIZE; // 1 extra page for clean suspend