1From d70a07562d3b0a7b4441922fd3ce136565927d04 Mon Sep 17 00:00:00 2001
2From: Emekcan Aras <Emekcan.Aras@arm.com>
3Date: Wed, 21 Feb 2024 07:57:36 +0000
4Subject: [PATCH] fix(corstone1000): pass spsr value explicitly
5
6Passes spsr value for BL32 (OPTEE) explicitly between different boot
7stages.
8
9Upstream-Status: Pending
10Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com>
11---
12 .../corstone1000/common/corstone1000_bl2_mem_params_desc.c     | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/plat/arm/board/corstone1000/common/corstone1000_bl2_mem_params_desc.c b/plat/arm/board/corstone1000/common/corstone1000_bl2_mem_params_desc.c
16index fe521a9fa..2cc096f38 100644
17--- a/plat/arm/board/corstone1000/common/corstone1000_bl2_mem_params_desc.c
18+++ b/plat/arm/board/corstone1000/common/corstone1000_bl2_mem_params_desc.c
19@@ -72,7 +72,8 @@ static bl_mem_params_node_t bl2_mem_params_descs[] = {
20 		SET_STATIC_PARAM_HEAD(ep_info, PARAM_EP,
21 			VERSION_2, entry_point_info_t, NON_SECURE | EXECUTABLE),
22 		.ep_info.pc = BL33_BASE,
23-
24+		.ep_info.spsr = SPSR_64(MODE_EL2, MODE_SP_ELX,
25+				       DISABLE_ALL_EXCEPTIONS),
26 		SET_STATIC_PARAM_HEAD(image_info, PARAM_EP,
27 			VERSION_2, image_info_t, 0),
28 		.image_info.image_base = BL33_BASE,
29--
302.25.1
31
32
33