Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saursin committed May 19, 2024
1 parent d8c0a8d commit 50ae566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sw/bootloader/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ void puthex(unsigned val) {

void boot_panic_handler(){
#ifdef __EN_PRINTS
puts("Exception: cause=0x"); puthex(CSR_read(CSR_MCAUSE));
puts("Boot Exception: cause=0x"); puthex(CSR_read(CSR_MCAUSE));
puts(", addr=0x"); puthex(CSR_read(CSR_MEPC));
putchar('\n');
#endif
exit(RCODE_EXCEPTION);
}
Expand Down

0 comments on commit 50ae566

Please # to comment.