audk/ArmPkg/Include
Ard Biesheuvel a34608ca96 ArmPkg/AsmMacroIoLibV8: remove undocumented assumption from ELx macros
The macros EL1_OR_EL2() and EL1_OR_EL2_OR_EL3() allow conditional execution
of assembly sequences based on the current exception level, by jumping to
caller supplied labels 1f, 2f or 3f. However, the jump to 1f is actually
a fallthrough, which means the EL1 code needs to follow right after the
macro invocation, and the 1f label is ignored.

So let's fix this by making all jumps explicit.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Eugene Cohen <eugene@hp.com>
2016-03-22 14:39:01 +01:00
..
Chipset ArmPkg/ArmLib: add ArmReadHcr to enable read-modify-write of HCR 2016-03-16 12:19:25 +01:00
Guid ARM Packages: Replace tabs by spaces for indentation 2014-08-26 10:14:17 +00:00
IndustryStandard ArmPkg: Add PSCI 0.2 constants for system poweroff and reset 2014-09-10 18:45:08 +00:00
Library ArmPkg: Configure TTBCR register 2016-03-03 18:23:54 +00:00
Ppi ArmPkg/ArmMpCoreInfo.h: Fixed macro definition 2013-12-10 16:37:10 +00:00
Protocol ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
AsmMacroExport.inc ArmPkg RVCT: add asm macro combining EXPORT, AREA and label definition 2015-12-02 16:23:20 +00:00
AsmMacroIoLib.h ArmPkg: remove SetPrimaryStack and InitializePrimaryStack macros 2015-11-27 17:11:03 +00:00
AsmMacroIoLib.inc ArmPkg: remove SetPrimaryStack and InitializePrimaryStack macros 2015-11-27 17:11:03 +00:00
AsmMacroIoLibV8.h ArmPkg/AsmMacroIoLibV8: remove undocumented assumption from ELx macros 2016-03-22 14:39:01 +01:00