summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-04-15 11:14:41 +0200
committerPalmer Dabbelt <palmer@sifive.com>2019-04-25 23:51:11 +0200
commitbed1378706637c0dd09c055480767dfcf6abe7db (patch)
tree4879fe1d671368d0ecf56c08ef592cdb03cdaa71 /arch
parentriscv: remove duplicate macros from ptrace.h (diff)
downloadlinux-bed1378706637c0dd09c055480767dfcf6abe7db.tar.xz
linux-bed1378706637c0dd09c055480767dfcf6abe7db.zip
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')
-rw-r--r--arch/riscv/kernel/irq.c3
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();