From: John Hodge Date: Fri, 7 Oct 2011 08:43:02 +0000 (+0800) Subject: Modules/armv7 - Added stub IRQ_AddHandler to GIC X-Git-Tag: rel0.11~17 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=545a38d7d981ac06c39ef6948243a7a98cbf737f;p=tpg%2Facess2.git Modules/armv7 - Added stub IRQ_AddHandler to GIC --- 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 +#include + +// === 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; +} +