
On Wed, Sep 25, 2013 at 11:57 AM, Andre Przywara andre.przywara@linaro.org wrote:
Alexander,
have you seen my series?
Hi and sorry for the late reply. Yes, seen that.
http://lists.denx.de/pipermail/u-boot/2013-September/163019.html [U-Boot] [PATCH v5 0/8] ARMv7: Add HYP mode switching support
I am about to support more boards, but OMAP5 seems very different, probably because it starts u-boot in non-secure state already, right?
Correct!
So all the magic is in the firmware, which just needs to be called by smc calls, right? So it looks like one could at least use some infrastructure (CONFIG_ARMV7_VIRT and the higher level .c files) to properly merge OMAP5 support in. Also needed would be to make most code of my patch optional by using the proper defines. What do you think?
I don't know, maybe just add a callback (or define the HYP initialization routine as a weak symbol). OMAP5 just works without modifying VBAR or touching anything except what's mentioned in the patch, so I probably need to read the manual about virtualization to comment on it.
Regards, Andre.