]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/CpuDxe: AArch64: Fix wrong comparison of exception type
authorGirish K S <ks.giri@samsung.com>
Mon, 19 Aug 2013 13:49:09 +0000 (13:49 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 19 Aug 2013 13:49:09 +0000 (13:49 +0000)
commit6a343fac2c0607004a7634ce6d47cfbd37685fd8
treed826e157ab6cd3a67cee5efb90e8660edfbc9f20
parent6675a21f141ce144a9e7ff39128b2a625eab80c9
ArmPkg/CpuDxe: AArch64: Fix wrong comparison of exception type

During the interrupt registration comparison is made against
max value of exception types for ARMV7, but in the common handling
function the check is made against max value of exceptions types
for ARMV8. This can lead to undefined behaviour during registration
of interrupts.

This patch modifies the registration function to handle only AArch64
exceptions.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Girish K S <ks.giri@samsung.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14561 6f19259b-4bc3-4df7-8a09-765794883524
ArmPkg/Drivers/CpuDxe/AArch64/Exception.c