i.MX8M Mini EL1 stack pointer Issue

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

i.MX8M Mini EL1 stack pointer Issue

204 Views
Hariharan1
Contributor III

In arm cortex a53, I am switching exception level EL3 to EL1. I attached code below.

mov x0, xzr

mov x0, #0b00101 /* EL1 */

orr x0, x0, #(3 << 8)/* Enable SError and Debug Abort. */

orr x0, x0, #(1 << 7) /* IRQ interrupt Process state mask. */

orr x0, x0, #(1 << 6) /* FIQ interrupt Process state mask. */

msr spsr_el3, x0

ldr x0, =el1_secure

msr elr_el3, x0

isb

eret

 

I checked Currentel register, it has changed exception level (EL1). after that stack pointer pointing to somewhere. i don't know why.

mrs x6, Currentel

ubfx x6, x6, #2, #2

 

Here is example of stack pointer register

 

x30 0x7e1190 

sp 0xddd141a18806092b 

pc 0x910e3c <main+4>

cpsr 0xaaaaaaaa [ #1 #3 #5 I D #11 #13 #15 #17 #19 SS UAO TCO #27 C N ]

 

 

anyone recommend your thoughts what i have to do clear that error.

0 Kudos
1 Reply

176 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

We don't support such issue, you should refer the ELx switch code in uboot, atf or kernel.

0 Kudos