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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

470 次查看
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

标签 (1)
0 项奖励
回复
1 回复

437 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport
0 项奖励
回复