mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 13:47:33 -04:00
[bootloader] minor edits
explicitly declare interrupt routines to be executed as machine mode code
This commit is contained in:
parent
63da3220c3
commit
99c3cc1b03
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue