armcm_boot: improve the boot code methods

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-05-15 12:13:26 -04:00
parent c510d532f4
commit 6c82de6e47
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A

View File

@ -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