From c8528747e969b9d16409d0edfd28fb196b1eb5eb Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 23 Apr 2026 15:13:11 +0800 Subject: [PATCH] adjust other configurations stack limit --- loader/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/src/lib.rs b/loader/src/lib.rs index 84eeb9a43..9e8d7e3a8 100644 --- a/loader/src/lib.rs +++ b/loader/src/lib.rs @@ -43,12 +43,12 @@ pub const APP_UART_IFRAM_ADDR: usize = bao1x_hal::board::APP_UART_IFRAM_ADDR; pub const GUARD_MEMORY_BYTES: usize = 3 * crate::PAGE_SIZE; /// Amount of space for loader stack only, with swap #[cfg(all(feature = "swap", not(feature = "resume"), not(feature = "bao1x")))] -pub const GUARD_MEMORY_BYTES: usize = 8 * crate::PAGE_SIZE; +pub const GUARD_MEMORY_BYTES: usize = 9 * crate::PAGE_SIZE; #[cfg(all(feature = "swap", not(feature = "resume"), feature = "bao1x"))] 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 +pub const GUARD_MEMORY_BYTES: usize = 10 * crate::PAGE_SIZE; // 1 extra page for clean suspend #[cfg(feature = "swap")] pub const SWAPPER_PID: u8 = 2;