]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/DefaultExceptionHandlerLib: use deadloop rather than ASSERT
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 9 May 2016 14:14:15 +0000 (16:14 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 9 May 2016 15:24:52 +0000 (17:24 +0200)
commit1549fb607b50c814072d18229ca423acb150cb68
tree8c727992e5ed751814f8f2ae9a436ac4776f3126
parent275d51369a55952c7d75399752c7269a16ff03de
ArmPkg/DefaultExceptionHandlerLib: use deadloop rather than ASSERT

The default exception handler, which is essentially the one that is invoked
for unexpected exceptions, ends with an ASSERT (FALSE), to ensure that
execution halts after dumping the CPU state. However, ASSERTs are compiled
out in RELEASE builds, and since we simply return to wherever the ELR is
pointing, we will not make any progress in case of synchronous aborts, and
the same exception will be taken again immediately, resulting in the string
'Exception at 0x....' to be printed over and over again.

So use an explicit deadloop instead.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c