diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-01 20:02:14 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-01 20:02:14 +0000 |
commit | 6e88239331734c841074e166e0a257218b3b0516 (patch) | |
tree | 1df73bf1340891c4f683742ebccc4e5ff7518415 /ArmPkg | |
parent | 3723a71a33d88307d96bca4facdce7d0120d922f (diff) | |
download | edk2-6e88239331734c841074e166e0a257218b3b0516.zip edk2-6e88239331734c841074e166e0a257218b3b0516.tar.gz edk2-6e88239331734c841074e166e0a257218b3b0516.tar.bz2 |
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
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Drivers/CpuDxe/Exception.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ArmPkg/Drivers/CpuDxe/Exception.c b/ArmPkg/Drivers/CpuDxe/Exception.c index eef7664..2f7e1b6 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
//
|