BL2: Sanity check value in x0 in the entry point code
Change-Id: Icef68e314e6ba0f3694189b57f4b1dbbea5ba255
This commit is contained in:
parent
ba6980a8db
commit
34edaed563
|
@ -77,6 +77,14 @@ bl2_entrypoint:; .type bl2_entrypoint, %function
|
||||||
|
|
||||||
isb
|
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:
|
* Zero out NOBITS sections. There are 2 of them:
|
||||||
* - the .bss section;
|
* - the .bss section;
|
||||||
|
|
Loading…
Reference in New Issue