From: Masahiro Yamada Date: Fri, 28 Jun 2013 12:51:33 +0900 Subject: [U-Boot] [PATCH v2 6/7] ARM: extend non-secure switch to also go into HYP mode In-Reply-To: <1371121273-18763-7-git-send-email-andre.przywara@linaro.org> References: <1371121273-18763-1-git-send-email-andre.przywara@linaro.org> <1371121273-18763-7-git-send-email-andre.przywara@linaro.org> Message-ID: <20130628125133.383C.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Andre [RFC] I'd like to suggest to separate HYP-switching code from Non-secure switching. And define different macros, for example: CONFIG_ARMV7_NONSECURE : switch to nonsecure CONFIG_ARMV7_VIRT : switch to hypervisor Of cource, CONFIG_ARMV7_NONSECURE must be defined when using CONFIG_ARMV7_VIRT. (If we introduced Kconfig to U-boot, we could handle nicely dependency between CONFIGs.) I know your incentive to switch to non-secure state is virtualization. But I think this separation would make this code useful for other boards and easy to understand. For example (this situtation might be specific to my board), non-secure switching is done for the reason to use a hardware debugger, because our debugger without security extension can work only in non-secure state. Best Regards Masahiro Yamada