Modules/armv7 - Added stub IRQ_AddHandler to GIC
authorJohn Hodge <[email protected]>
Fri, 7 Oct 2011 08:43:02 +0000 (16:43 +0800)
committerJohn Hodge <[email protected]>
Fri, 7 Oct 2011 08:43:02 +0000 (16:43 +0800)
Modules/armv7/GIC/Makefile
Modules/armv7/GIC/gic.c

index c5d563f..d4a72b6 100644 (file)
@@ -2,6 +2,6 @@
 #
 
 OBJ := gic.o
-NAME := armv7_GIC
+NAME := GIC
 
 -include ../Makefile.tpl
index e69de29..90682f6 100644 (file)
@@ -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;
+}
+

UCC git Repository :: git.ucc.asn.au