[U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

Peter Maydell
2013-09-19T23:21:18Z

On 20 September 2013 07:50, Mj Embd <mj.embd@gmail.com> wrote:
> [MJ] Ok got your point. Then what would be the steps to return from Monitor
> to Hyp mode?

You can't do it directly. While still in the Secure world you set up
the HVBAR and a suitable vector table for hyp mode exceptions.
Then you can drop back into NS-SVC, and execute an HVC
instruction which puts you into hyp mode at the hvc entry point
in your vector table. See patch 7 in the series.

-- PMM