diff --git a/bl2/aarch64/bl2_entrypoint.S b/bl2/aarch64/bl2_entrypoint.S index 75970f745..03d084807 100644 --- a/bl2/aarch64/bl2_entrypoint.S +++ b/bl2/aarch64/bl2_entrypoint.S @@ -77,6 +77,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;