1 // SPDX-License-Identifier: GPL-2.0
3 * linux/arch/m32r/kernel/irq.c
5 * Copyright (c) 2003, 2004 Hitoshi Yamamoto
6 * Copyright (c) 2004 Hirokazu Takata <takata at linux-m32r.org>
10 * linux/arch/i386/kernel/irq.c
12 * Copyright (C) 1992, 1998 Linus Torvalds, Ingo Molnar
14 * This file contains the lowest level m32r-specific interrupt
15 * entry and irq statistics code. All the remaining irq logic is
16 * done by the generic kernel/irq/ code and in the
17 * m32r-specific irq controller code.
20 #include <linux/kernel_stat.h>
21 #include <linux/interrupt.h>
22 #include <linux/module.h>
23 #include <linux/uaccess.h>
26 * do_IRQ handles all normal device IRQs (the special
27 * SMP cross-CPU interrupts have their own specific
30 asmlinkage
unsigned int do_IRQ(int irq
, struct pt_regs
*regs
)
32 struct pt_regs
*old_regs
;
33 old_regs
= set_irq_regs(regs
);
36 #ifdef CONFIG_DEBUG_STACKOVERFLOW
39 generic_handle_irq(irq
);
41 set_irq_regs(old_regs
);