Skip to content

Commit

Permalink
[sw/lib] RTE: minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Jul 6, 2024
1 parent 34c8ce9 commit 9a03baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/lib/source/neorv32_rte.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ void neorv32_rte_debug_handler(void) {
__neorv32_rte_print_hex_word(neorv32_cpu_csr_read(CSR_MTVAL));

// unhandled IRQ - disable interrupt channel
if (trap_cause & (1<<31)) { // is interrupt
if (((int32_t)trap_cause) < 0) { // is interrupt
neorv32_uart0_puts(" Disabling IRQ source\n");
neorv32_cpu_csr_clr(CSR_MIE, 1 << (trap_cause & 0x1f));
}
Expand Down

0 comments on commit 9a03baa

Please sign in to comment.