From 6c82de6e47e54955818ad9020482fafe006dae18 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sun, 15 May 2022 12:13:26 -0400 Subject: [PATCH] armcm_boot: improve the boot code methods Signed-off-by: Eric Callahan --- src/generic/armcm_boot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/generic/armcm_boot.c b/src/generic/armcm_boot.c index 0bb23e2..954e1b0 100644 --- a/src/generic/armcm_boot.c +++ b/src/generic/armcm_boot.c @@ -21,15 +21,16 @@ extern uint32_t _stack_end; uint64_t get_bootup_code(void) { - volatile uint64_t *req_code = (volatile void*)&_stack_end; + uint64_t *req_code = (void*)&_stack_end; return *req_code; } void set_bootup_code(uint64_t code) { - volatile uint64_t *req_code = (volatile void*)&_stack_end; + uint64_t *req_code = (void*)&_stack_end; *req_code = code; + barrier(); } #define REQUEST_START_APP 0x7b06ec45a9a8243d