diff options
author | Jun Nie <jun.nie@linaro.org> | 2018-08-07 12:20:49 +0800 |
---|---|---|
committer | Jun Nie <jun.nie@linaro.org> | 2018-08-07 12:25:40 +0800 |
commit | d5a4e05a2295f56c581f9d419c65d3579f281759 (patch) | |
tree | 6394bc3652b20c7fed6faee1d8e07b4aa9b405bc | |
parent | 9ea56f0b7a1755f34dd6eb3e95d64f2226d6f8bd (diff) |
Aarch32: does not trigger panic for non-hyp case
some ARMv7 SoC does not support hypervisor mode. Just skip
hypervisor related operation instead of trigger panic.
Signed-off-by: Jun Nie <jun.nie@linaro.org>
-rw-r--r-- | framework/aarch32/arch.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/aarch32/arch.c b/framework/aarch32/arch.c index 88b8101..d22e939 100644 --- a/framework/aarch32/arch.c +++ b/framework/aarch32/arch.c @@ -35,8 +35,6 @@ void tftf_arch_setup(void) { - if (!IS_IN_HYP()) - panic(); - - write_hcr(HCR_TGE_BIT); + if (IS_IN_HYP()) + write_hcr(HCR_TGE_BIT); } |