diff options
author | Christoph Hellwig <hch@lst.de> | 2019-04-15 11:14:41 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-04-25 14:51:11 -0700 |
commit | bed1378706637c0dd09c055480767dfcf6abe7db (patch) | |
tree | 4879fe1d671368d0ecf56c08ef592cdb03cdaa71 /arch/riscv | |
parent | 6ab77af4b0ee09b58ace90aeb9b1b84f4605b859 (diff) | |
download | linux-bed1378706637c0dd09c055480767dfcf6abe7db.tar.bz2 |
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>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/kernel/irq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/kernel/irq.c b/arch/riscv/kernel/irq.c index 48e6b7db83a1..c738132eecf8 100644 --- a/arch/riscv/kernel/irq.c +++ b/arch/riscv/kernel/irq.c @@ -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(); |