From 59ae767741237c887b042fd646e42ec88ecd3014 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 29 Sep 2025 14:48:48 +0800 Subject: [PATCH] fix statics origin in boot0 --- bao1x-boot/boot0/src/platform/bao1x/bao1x.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bao1x-boot/boot0/src/platform/bao1x/bao1x.rs b/bao1x-boot/boot0/src/platform/bao1x/bao1x.rs index de57cd6c2..34dad3a75 100644 --- a/bao1x-boot/boot0/src/platform/bao1x/bao1x.rs +++ b/bao1x-boot/boot0/src/platform/bao1x/bao1x.rs @@ -69,7 +69,7 @@ pub fn early_init() { // Now that SRAM trims are setup, initialize all the statics by writing to memory. // For baremetal, the statics structure is just at the flash base. - const STATICS_LOC: usize = FLASH_BASE + SIGBLOCK_LEN; + const STATICS_LOC: usize = bao1x_api::BOOT0_START + SIGBLOCK_LEN; // safety: this data structure is pre-loaded by the image loader and is guaranteed to // only have representable, valid values that are aligned according to the repr(C) spec