From: Mark Rutland mark.rutland@arm.com
Add a CURRENTEL_EL3 #define to make tests against the value of CurrentEL clearer.
Signed-off-by: Mark Rutland mark.rutland@arm.com --- boot.S | 2 +- common.S | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/boot.S b/boot.S index 9cc382b..69d1714 100644 --- a/boot.S +++ b/boot.S @@ -17,7 +17,7 @@ _start: * EL3 initialisation */ mrs x0, CurrentEL - cmp x0, #0xc // EL3? + cmp x0, #CURRENTEL_EL3 b.ne start_ns // skip EL3 initialisation
mov x0, #0x30 // RES1 diff --git a/common.S b/common.S index d82d11b..bbe005b 100644 --- a/common.S +++ b/common.S @@ -7,6 +7,8 @@ * found in the LICENSE.txt file. */
+#define CURRENTEL_EL3 (3 << 2) + #define SPSR_A (1 << 8) /* System Error masked */ #define SPSR_D (1 << 9) /* Debug masked */ #define SPSR_I (1 << 7) /* IRQ masked */