I was studying the A55 baremetal boot. I changed the execution level from EL3 to EL2 then to EL1 can work very well,but EL1 can not change to EL0.I use the spsr_eln and elr_eln register with the instrcuction eret from higher EL to lower EL. but the EL1 to EL0 always causes excepiton and the ESR_EL3 show the error infor is 92000050.I did not setup MMU.
Thanks by advance
You might try,
/* holds the address to return to */ adr x4, 1f msr elr_el2, x4
mov x6, sp
msr sp_el1, x6 //set the stack point to SP_EL1
bl print3 Pasco Connect Login
Thank you very much,May I ask you why do we use elr_el2 other than elr_el1?