i.MX8M Change System mode(EL1) to User mode(EL0)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8M Change System mode(EL1) to User mode(EL0)

126 Views
Hariharan1
Contributor III

Hi Experts,

I have been successfully routing el3 to el1. but i am not able to change EL1 to EL0 in uboot code(Branch - imx_v2019.04_4.19.35_1.1.0). what can be an issue. This code, i have inserted in uboot.

ESR_EL1 value is 0x92000210

Data Abort exception from a lower Exception level.
Used for MMU faults generated by data accesses, alignment faults other than those
caused by Stack Pointer misalignment

el1_to_el0:
                  ADR x0, User_level_function
                  MSR ELR_EL1, x0 // Set return address in EL0
                  MOV x1, #0
                  MSR SPSR_EL1, x1
                  mov x2, sp
                  MSR SP_EL0, x2

                  ERET // Return to EL0

Labels (1)
0 Kudos
1 Reply

93 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport
0 Kudos