Message ID | 20190412143948.12478-12-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [01/12] riscv: use asm-generic/extable.h | expand |
Στις 2019-04-12 17:39, Christoph Hellwig έγραψε: > This has been helpful when debugging my pending nommu port. > > Signed-off-by: Christoph Hellwig <hch@lst.de> > --- > arch/riscv/kernel/irq.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > 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(); Reviewed-by: Nick Kossifidis <mick@ics.forth.gr>
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();
This has been helpful when debugging my pending nommu port. Signed-off-by: Christoph Hellwig <hch@lst.de> --- arch/riscv/kernel/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)