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

Transition from EL3 to EL1 on A53

I have a standalone app running at EL3 in OCM on an A53 processor. The code boots from flash. I load an elf image into RAM and need to transition to its entry point running at EL1.

I try and make the transition via the following code:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*****************************************************************************/
/**
* @file asm_switch_to_EL1.s
*
* This file contains the code tat switches from EL3 to EL1 for the Cortex A53 processor
*
* <pre>
* MODIFICATION HISTORY:
*
* Ver Who Date Changes
* ----- ------- -------- ---------------------------------------------------
* 1.00 kcm 11/26/19 Initial version
*
* </pre>
*
* @note
*
* None.
*
******************************************************************************/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

If I try and debug this using the JTAG debugger on a Xylinx ZCU111 module, the debugger seems to get lost when I try and execute the ERET instruction.

I have discussed this with a Xylinx engineer and he suggested I post to this forum.

He also suggested I 

My guess is that might need to setup the vbar_el1 register since I am returning from an exception.

Any thoughts or help on this would be appreciated.

0