From: Christoph Hellwig Date: Mon, 15 Apr 2019 09:14:41 +0000 (+0200) Subject: riscv: print the unexpected interrupt cause X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bed1378706637c0dd09c055480767dfcf6abe7db;p=openwrt%2Fstaging%2Fblogic.git riscv: print the unexpected interrupt cause This has been helpful when debugging my pending nommu port. Signed-off-by: Christoph Hellwig Reviewed-by: Nick Kossifidis Signed-off-by: Palmer Dabbelt --- 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();