From ad6793dbd404de48fb8c084a73f45dae59b430b6 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sun, 15 May 2022 10:51:12 -0400 Subject: [PATCH] armcm_boot: add volatile label to bootup_code Signed-off-by: Eric Callahan --- src/generic/armcm_boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/armcm_boot.c b/src/generic/armcm_boot.c index a52b247..0bb23e2 100644 --- a/src/generic/armcm_boot.c +++ b/src/generic/armcm_boot.c @@ -21,14 +21,14 @@ extern uint32_t _stack_end; uint64_t get_bootup_code(void) { - uint64_t *req_code = (void*)&_stack_end; + volatile uint64_t *req_code = (volatile void*)&_stack_end; return *req_code; } void set_bootup_code(uint64_t code) { - uint64_t *req_code = (void*)&_stack_end; + volatile uint64_t *req_code = (volatile void*)&_stack_end; *req_code = code; }