mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
riscv: print the unexpected interrupt cause
This has been helpful when debugging my pending nommu port. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Nick Kossifidis <mick@ics.forth.gr> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
parent
6ab77af4b0
commit
bed1378706
1 changed files with 2 additions and 1 deletions
|
|
@ -54,7 +54,8 @@ asmlinkage void __irq_entry do_IRQ(struct pt_regs *regs)
|
|||
handle_arch_irq(regs);
|
||||
break;
|
||||
default:
|
||||
panic("unexpected interrupt cause");
|
||||
pr_alert("unexpected interrupt cause 0x%lx", regs->scause);
|
||||
BUG();
|
||||
}
|
||||
irq_exit();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue