blob: c7272b8942835adb9f39a80d8026ea6cbfd42798 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/m32r/kernel/irq.c
3 *
4 * Copyright (c) 2003, 2004 Hitoshi Yamamoto
5 * Copyright (c) 2004 Hirokazu Takata <takata at linux-m32r.org>
6 */
7
8/*
9 * linux/arch/i386/kernel/irq.c
10 *
11 * Copyright (C) 1992, 1998 Linus Torvalds, Ingo Molnar
12 *
13 * This file contains the lowest level m32r-specific interrupt
14 * entry and irq statistics code. All the remaining irq logic is
15 * done by the generic kernel/irq/ code and in the
16 * m32r-specific irq controller code.
17 */
18
19#include <linux/kernel_stat.h>
20#include <linux/interrupt.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#include <linux/module.h>
22#include <asm/uaccess.h>
23
Linus Torvalds1da177e2005-04-16 15:20:36 -070024/*
Simon Arlott5aa8b6c2007-10-20 01:14:39 +020025 * do_IRQ handles all normal device IRQs (the special
Linus Torvalds1da177e2005-04-16 15:20:36 -070026 * SMP cross-CPU interrupts have their own specific
27 * handlers).
28 */
29asmlinkage unsigned int do_IRQ(int irq, struct pt_regs *regs)
30{
Al Viro9c8e7f52006-10-07 16:29:18 +010031 struct pt_regs *old_regs;
32 old_regs = set_irq_regs(regs);
Linus Torvalds1da177e2005-04-16 15:20:36 -070033 irq_enter();
34
35#ifdef CONFIG_DEBUG_STACKOVERFLOW
36 /* FIXME M32R */
37#endif
Thomas Gleixnera9fe8d52011-02-05 21:39:28 +010038 generic_handle_irq(irq);
Linus Torvalds1da177e2005-04-16 15:20:36 -070039 irq_exit();
Al Viro9c8e7f52006-10-07 16:29:18 +010040 set_irq_regs(old_regs);
Linus Torvalds1da177e2005-04-16 15:20:36 -070041
42 return 1;
43}