[bootloader] minor edits

explicitly declare interrupt routines to be executed as machine mode code
This commit is contained in:
stnolting 2023-10-11 20:47:13 +02:00
parent 63da3220c3
commit 99c3cc1b03

View file

@ -244,7 +244,7 @@ volatile uint32_t getting_exe;
/**********************************************************************//**
* Function prototypes
**************************************************************************/
void __attribute__((__interrupt__)) bootloader_trap_handler(void);
void __attribute__((interrupt("machine"))) bootloader_trap_handler(void);
void print_help(void);
void start_app(int boot_xip);
void get_exe(int src);
@ -498,7 +498,7 @@ void start_app(int boot_xip) {
*
* @note Since we have no runtime environment, we have to use the interrupt attribute here.
**************************************************************************/
void __attribute__((__interrupt__)) bootloader_trap_handler(void) {
void __attribute__((interrupt("machine"))) bootloader_trap_handler(void) {
register uint32_t mcause = neorv32_cpu_csr_read(CSR_MCAUSE);