diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-02-04 23:04:21 +0000 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2016-02-04 23:05:11 +0000 |
commit | b2bd13cae6640795b7bd48c09a913d12aab1facb (patch) | |
tree | c425294df4fd0f07109caead7091c6db03b3c030 | |
parent | 82df77d9f3614b7c071394b204a32ce79e9aa5fe (diff) |
enter non-secure world in non-secure EL2
-rw-r--r-- | services/arm/arm_svc_setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |