allow guard memory to be differentiated across platforms

This commit is contained in:
bunnie 2024-05-21 16:00:56 +08:00
parent 9c90994bd5
commit 0153b3b96e

View file

@ -36,7 +36,9 @@ pub const APP_UART_IFRAM_ADDR: usize = utralib::HW_IFRAM0_MEM + utralib::HW_IFRA
#[cfg(not(feature = "swap"))]
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")))]
#[cfg(all(feature = "swap", not(feature = "resume"), not(feature = "cramium-soc")))]
pub const GUARD_MEMORY_BYTES: usize = 7 * crate::PAGE_SIZE;
#[cfg(all(feature = "swap", not(feature = "resume"), feature = "cramium-soc"))]
pub const GUARD_MEMORY_BYTES: usize = 7 * crate::PAGE_SIZE;
/// Amount of space for loader stack plus clean suspend, with swap
#[cfg(all(feature = "swap", feature = "resume"))]