[U-Boot] test HYP mode in arch/arm/cpu/armv7/start.S

Albert ARIBAUD albert.u.boot at aribaud.net
Fri Jul 5 22:56:38 CEST 2013


Hi TigerLiu at viatech.com.cn,

On Tue, 2 Jul 2013 10:22:03 +0800, <TigerLiu at viatech.com.cn> wrote:

> Hi, experts:
> I found it would determine whether CPU was in HYP mode or not before
> switching to SVC mode in reset handler.
> 
> So, why need to test HYP mode?
> So, which case could cause CPU in HYP mode during U-Boot boot stage?

IIUC, U-Boot might actually be started from some earlier stage, e.g.
some ROM code, which may have switched the CPU into HYP mode already.

> Best wishes,

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list