| // SPDX-License-Identifier: GPL-2.0 |
| * Copyright (C) 2012 Regents of the University of California |
| * Copyright (C) 2017 SiFive |
| * Copyright (C) 2018 Christoph Hellwig |
| #include <linux/interrupt.h> |
| #include <linux/irqchip.h> |
| #include <linux/irqdomain.h> |
| #include <linux/seq_file.h> |
| int arch_show_interrupts(struct seq_file *p, int prec) |
| asmlinkage __visible void __irq_entry do_IRQ(struct pt_regs *regs) |
| struct pt_regs *old_regs = set_irq_regs(regs); |
| switch (regs->cause & ~CAUSE_IRQ_FLAG) { |
| * We only use software interrupts to pass IPIs, so if a non-SMP |
| * system gets one, then we don't know what to do. |
| riscv_software_interrupt(); |
| pr_alert("unexpected interrupt cause 0x%lx", regs->cause); |
| void __init init_IRQ(void) |