]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/CpuDxe: ZeroMem the gExceptionHandlers[] array
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Jul 2011 20:02:14 +0000 (20:02 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Jul 2011 20:02:14 +0000 (20:02 +0000)
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

index eef76644f70529f548fee62e915660a2a5f742d0..2f7e1b637f89bff59903596ea03c16ec22e0b653 100644 (file)
@@ -129,6 +129,8 @@ InitializeExceptions (
   UINT32               *VectorBase;\r
 \r
   Status = EFI_SUCCESS;\r
+  ZeroMem (gExceptionHandlers,sizeof(*gExceptionHandlers));\r
+\r
   //\r
   // Disable interrupts\r
   //\r