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

Peter Maydell peter.maydell at linaro.org
Fri Sep 20 01:21:18 CEST 2013


On 20 September 2013 07:50, Mj Embd <mj.embd at 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


More information about the U-Boot mailing list