From bd58d9187ef9d71a280c0615d8e510165467202c Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 8 Apr 2024 23:56:35 +0800 Subject: [PATCH] make secboot's stack test adjust to the platform-defined RAM available --- loader/src/secboot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/src/secboot.rs b/loader/src/secboot.rs index c19ba4306..913639ccc 100644 --- a/loader/src/secboot.rs +++ b/loader/src/secboot.rs @@ -14,7 +14,7 @@ const VERSION_STR: &'static str = "Xous OS Loader v0.9.6\n\r"; // v0.9.6 -- convert signature check to pre-hash signature (see #472 https://github.com/betrusted-io/xous-core/issues/472) pub const STACK_LEN: u32 = 8192 - (7 * 4); // 7 words for backup kernel args -pub const STACK_TOP: u32 = 0x4100_0000 - STACK_LEN; +pub const STACK_TOP: u32 = (crate::platform::RAM_BASE + crate::platform::RAM_SIZE) as u32 - STACK_LEN; use utralib::generated::*;