mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
BL2: Sanity check value in x0 in the entry point code
Change-Id: Icef68e314e6ba0f3694189b57f4b1dbbea5ba255
This commit is contained in:
committed by
Dan Handley
parent
ba6980a8db
commit
34edaed563
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user