From 545a38d7d981ac06c39ef6948243a7a98cbf737f Mon Sep 17 00:00:00 2001
From: John Hodge <tpg@mutabah.net>
Date: Fri, 7 Oct 2011 16:43:02 +0800
Subject: [PATCH] Modules/armv7 - Added stub IRQ_AddHandler to GIC

---
 Modules/armv7/GIC/Makefile |  2 +-
 Modules/armv7/GIC/gic.c    | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/Modules/armv7/GIC/Makefile b/Modules/armv7/GIC/Makefile
index c5d563fc..d4a72b6a 100644
--- a/Modules/armv7/GIC/Makefile
+++ b/Modules/armv7/GIC/Makefile
@@ -2,6 +2,6 @@
 #
 
 OBJ := gic.o
-NAME := armv7_GIC
+NAME := GIC
 
 -include ../Makefile.tpl
diff --git a/Modules/armv7/GIC/gic.c b/Modules/armv7/GIC/gic.c
index e69de29b..90682f64 100644
--- a/Modules/armv7/GIC/gic.c
+++ b/Modules/armv7/GIC/gic.c
@@ -0,0 +1,28 @@
+/*
+ * ARMv7 GIC Support
+ * - By John Hodge (thePowersGang)
+ * 
+ * gic.c
+ * - GIC Core
+ */
+#include <acess.h>
+#include <modules.h>
+
+// === PROTOTYPES ===
+ int	GIC_Install(char **Arguments);
+
+// === GLOBALS ===
+MODULE_DEFINE(0, 0x100, armv7_GIC, GIC_Install, NULL, NULL);
+
+// === CODE ===
+int GIC_Install(char **Arguments)
+{
+	return MODULE_ERR_OK;
+}
+
+int IRQ_AddHandler(int IRQ, void (*Handler)(int, void*), void *Ptr)
+{
+	Log_Warning("GIC", "TODO: Implement IRQ_AddHandler");
+	return 0;
+}
+
-- 
GitLab