From 6e88239331734c841074e166e0a257218b3b0516 Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Fri, 1 Jul 2011 20:02:14 +0000 Subject: ArmPkg/CpuDxe: ZeroMem the gExceptionHandlers[] array Prevent an IRQ (or any other exceptions) to make a call to an undefined handler when the interrupt handler has not been registered yet. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11965 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Drivers/CpuDxe/Exception.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ArmPkg') diff --git a/ArmPkg/Drivers/CpuDxe/Exception.c b/ArmPkg/Drivers/CpuDxe/Exception.c index eef76644f7..2f7e1b637f 100644 --- a/ArmPkg/Drivers/CpuDxe/Exception.c +++ b/ArmPkg/Drivers/CpuDxe/Exception.c @@ -129,6 +129,8 @@ InitializeExceptions ( UINT32 *VectorBase; Status = EFI_SUCCESS; + ZeroMem (gExceptionHandlers,sizeof(*gExceptionHandlers)); + // // Disable interrupts // -- cgit v1.2.3