How Can I jump from EL1 to EL0 in bare metal environment

Hello,

I am working with a port of FreeRTOS on Arm64 soc , which is running at EL1, my goal is to perform a function call that will execute in EL0,

I have come to understand that the only way for the EL switch is to set the correct M bits of the spsr_el1 and put the destination function in elr_el1, and then perform a

ERET instruction, but that didn't work.

so are there any other conditions , advices I should consider in doing that ?

Thanks,
Awax

More questions in this forum