[sw/bootloader] aligned trap handler

This commit is contained in:
Lukas Pajak 2025-01-13 11:49:02 +01:00
parent 08180a4179
commit ec6ff19e4c

View file

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