summaryrefslogtreecommitdiff
path: root/bl2/aarch64
diff options
context:
space:
mode:
Diffstat (limited to 'bl2/aarch64')
-rw-r--r--bl2/aarch64/bl2_entrypoint.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/bl2/aarch64/bl2_entrypoint.S b/bl2/aarch64/bl2_entrypoint.S
index 75970f74..03d08480 100644
--- a/bl2/aarch64/bl2_entrypoint.S
+++ b/bl2/aarch64/bl2_entrypoint.S
@@ -78,6 +78,14 @@ bl2_entrypoint:; .type bl2_entrypoint, %function
isb
/* ---------------------------------------------
+ * Check the opcodes out of paranoia.
+ * ---------------------------------------------
+ */
+ mov x0, #RUN_IMAGE
+ cmp x0, x20
+ b.ne _panic
+
+ /* ---------------------------------------------
* Zero out NOBITS sections. There are 2 of them:
* - the .bss section;
* - the coherent memory section.