From b2bd13cae6640795b7bd48c09a913d12aab1facb Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Thu, 4 Feb 2016 23:04:21 +0000 Subject: enter non-secure world in non-secure EL2 --- services/arm/arm_svc_setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/arm/arm_svc_setup.c b/services/arm/arm_svc_setup.c index 7e2a396..9e1ebc8 100644 --- a/services/arm/arm_svc_setup.c +++ b/services/arm/arm_svc_setup.c @@ -81,7 +81,8 @@ void prepare_nonsec_os_entry(uint64_t kernel_addr, uint64_t dtb_addr) /* Program EL3 registers to enable entry into the next EL */ memset(&next_image_info, 0, sizeof(next_image_info)); SET_SECURITY_STATE(next_image_info.h.attr, NON_SECURE); - next_image_info.spsr = SPSR_64(MODE_EL1, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); + next_image_info.spsr = SPSR_64(MODE_EL2, MODE_SP_ELX, + DISABLE_ALL_EXCEPTIONS); next_image_info.pc = kernel_addr; next_image_info.args.arg0 = dtb_addr; -- cgit v1.2.3