When dropping to EL1 ensure we have written to all special registers by

moving the instruction barrier to just before we drop exception level.

Sponsored by:	ABT Systems Ltd
This commit is contained in:
andrew 2015-09-07 10:13:14 +00:00
parent 1b61937107
commit 59e96ee17c

View File

@ -246,11 +246,11 @@ drop_to_el1:
mrs x2, icc_sre_el2
orr x2, x2, #ICC_SRE_EL2_EN /* Enable access from insecure EL1 */
msr icc_sre_el2, x2
isb
2:
/* Set the address to return to our return address */
msr elr_el2, x30
isb
eret