From 2702b94c93f586bb0106ab1919d9a382347587d3 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 26 Apr 2024 18:20:14 +0800 Subject: [PATCH] include signature block in kernel offset constant --- loader/src/platform/cramium/cramium.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader/src/platform/cramium/cramium.rs b/loader/src/platform/cramium/cramium.rs index d4b03a5cb..1be527126 100644 --- a/loader/src/platform/cramium/cramium.rs +++ b/loader/src/platform/cramium/cramium.rs @@ -28,7 +28,8 @@ pub const SPIM_RAM_IFRAM_ADDR: usize = utralib::HW_IFRAM0_MEM + utralib::HW_IFRA pub const SPIM_FLASH_IFRAM_ADDR: usize = utralib::HW_IFRAM0_MEM + utralib::HW_IFRAM0_MEM_LEN - 4 * 4096; // location of kernel, as offset from the base of ReRAM. This needs to match up with what is in link.x. -pub const KERNEL_OFFSET: usize = 0x4_0000; +// inclusive of the signature block offset +pub const KERNEL_OFFSET: usize = 0x4_1000; #[cfg(feature = "cramium-soc")] pub fn early_init() {