From 06bd18b0a437a15e2e76f9c3a888d14c9d4c1c1a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 22 Sep 2013 19:13:13 +0800 Subject: [PATCH] Modules/ARMv7 GIC - Quietened interrupt handling --- KernelLand/Modules/armv7/GIC/gic.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/KernelLand/Modules/armv7/GIC/gic.c b/KernelLand/Modules/armv7/GIC/gic.c index a918f68e..85c5cf6a 100644 --- a/KernelLand/Modules/armv7/GIC/gic.c +++ b/KernelLand/Modules/armv7/GIC/gic.c @@ -80,8 +80,12 @@ int GIC_Install(char **Arguments) void GIC_IRQHandler(void) { Uint32 num = gpGIC_InterfaceBase[GICC_IAR]; - Log_Debug("GIC", "IRQ 0x%x", num); - gaIRQ_Handlers[num]( num, gaIRQ_HandlerData[num] ); + if( gaIRQ_Handlers[num] ) { + gaIRQ_Handlers[num]( num, gaIRQ_HandlerData[num] ); + } + else { + Log_Debug("GIC", "IRQ 0x%x unhandled", num); + } gpGIC_InterfaceBase[GICC_EOIR] = num; } -- 2.20.1