OSDN Git Service

Add X68030 interrupt initialize.
authorYoshinori Sato <ysato@users.sourceforge.jp>
Wed, 1 Dec 2021 11:46:50 +0000 (20:46 +0900)
committerYoshinori Sato <ysato@users.sourceforge.jp>
Wed, 1 Dec 2021 11:46:50 +0000 (20:46 +0900)
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
arch/m68k/x68k/x68kints.c [new file with mode: 0644]

diff --git a/arch/m68k/x68k/x68kints.c b/arch/m68k/x68k/x68kints.c
new file mode 100644 (file)
index 0000000..fddd53c
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * arch/m68k/x68k/x68kints.c -- X68030 Linux interrupt handling code
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file COPYING in the main directory of this archive
+ * for more details.
+ *
+ */
+
+#include <linux/types.h>
+#include <linux/kernel.h>
+#include <linux/kernel_stat.h>
+#include <linux/init.h>
+#include <linux/seq_file.h>
+#include <linux/module.h>
+#include <linux/irq.h>
+
+#include <asm/traps.h>
+#include <asm/irq.h>
+
+
+/* Setup X68030 interrupt */
+
+void __init x68k_init_IRQ(void)
+{
+       m68k_setup_user_interrupt(VEC_USER, NR_IRQS - VEC_USER);
+}
+