mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
BL2: Sanity check value in x0 in the entry point code
Change-Id: Icef68e314e6ba0f3694189b57f4b1dbbea5ba255
This commit is contained in:
parent
ba6980a8db
commit
34edaed563
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue