mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 21:57:33 -04:00
[sw/bootloader] aligned trap handler
This commit is contained in:
parent
08180a4179
commit
ec6ff19e4c
1 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,7 @@ volatile uint32_t getting_exe;
|
|||
/**********************************************************************//**
|
||||
* Function prototypes
|
||||
**************************************************************************/
|
||||
void __attribute__((interrupt("machine"))) bootloader_trap_handler(void);
|
||||
void __attribute__((interrupt("machine"),aligned(4))) bootloader_trap_handler(void);
|
||||
void print_help(void);
|
||||
void start_app(int boot_xip);
|
||||
void get_exe(int src);
|
||||
|
@ -470,7 +470,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("machine"))) bootloader_trap_handler(void) {
|
||||
void __attribute__((interrupt("machine"),aligned(4))) 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