This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

manually setting ELR_ELx register value

Hi all,

The main differences in ARMv8 EL3 is that it has its own MMU and it can only be entered via SMC and exit via ERET instruction. ERET instruction reads from ELR_EL3 (Exception Link register) and continue execution from that address (of course changing context before).

So, does it possible to "manually" change context and write destination address in ELR_EL3 register and perform ERET inst. Exactly, set new context (SP, NS bit, gp reg...), write address from EL2 memory space to ELR_EL3 ( Hypervisor memory space, which is non secure), perform ERET,  and continue execution there?

Thanks

0