diff --git a/Modules/armv7/GIC/Makefile b/Modules/armv7/GIC/Makefile index c5d563fcb2b2fdf1865a448e67385de314a705f8..d4a72b6af2ae183c42d3e9bd8ae85faa4fa790d9 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 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..90682f6454ac593877cd7accca24aa932a8d566f 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; +} +