Home
last modified time | relevance | path

Searched refs:spsr (Results 1 – 25 of 110) sorted by relevance

12345

/external/arm-trusted-firmware/plat/arm/common/aarch64/
Dexecution_state_switch.c43 u_register_t spsr, pc, scr, sctlr; in arm_execution_state_switch() local
61 spsr = read_ctx_reg(el3_ctx, CTX_SPSR_EL3); in arm_execution_state_switch()
62 caller_64 = (GET_RW(spsr) == MODE_RW_64); in arm_execution_state_switch()
93 from_el2 = caller_64 ? (GET_EL(spsr) == MODE_EL2) : in arm_execution_state_switch()
94 (GET_M32(spsr) == MODE32_hyp); in arm_execution_state_switch()
129 spsr = SPSR_MODE32((u_register_t) el, in arm_execution_state_switch()
139 spsr = SPSR_64((u_register_t) el, MODE_SP_ELX, in arm_execution_state_switch()
153 ep.spsr = (uint32_t) spsr; in arm_execution_state_switch()
/external/arm-trusted-firmware/plat/hisilicon/poplar/
Dbl2_plat_setup.c62 uint32_t spsr; in poplar_get_spsr_for_bl33_entry() local
75 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in poplar_get_spsr_for_bl33_entry()
76 return spsr; in poplar_get_spsr_for_bl33_entry()
81 unsigned int hyp_status, mode, spsr; in poplar_get_spsr_for_bl33_entry() local
92 spsr = SPSR_MODE32(mode, plat_get_ns_image_entrypoint() & 0x1, in poplar_get_spsr_for_bl33_entry()
94 return spsr; in poplar_get_spsr_for_bl33_entry()
133 bl_mem_params->ep_info.spsr = poplar_get_spsr_for_bl32_entry(); in poplar_bl2_handle_post_image_load()
140 bl_mem_params->ep_info.spsr = poplar_get_spsr_for_bl33_entry(); in poplar_bl2_handle_post_image_load()
/external/arm-trusted-firmware/services/spd/trusty/
Dtrusty.c464 ep_info->spsr = SPSR_64(MODE_EL1, MODE_SP_ELX, in trusty_setup()
467 ep_info->spsr = SPSR_MODE32(MODE32_svc, SPSR_T_ARM, in trusty_setup()
493 uint32_t spsr; in trusty_setup() local
500 spsr = ns_ep_info->spsr; in trusty_setup()
501 if (GET_RW(spsr) == MODE_RW_64 && GET_EL(spsr) == MODE_EL2) { in trusty_setup()
502 spsr &= ~(MODE_EL_MASK << MODE_EL_SHIFT); in trusty_setup()
503 spsr |= MODE_EL1 << MODE_EL_SHIFT; in trusty_setup()
505 if (GET_RW(spsr) == MODE_RW_32 && GET_M32(spsr) == MODE32_hyp) { in trusty_setup()
506 spsr &= ~(MODE32_MASK << MODE32_SHIFT); in trusty_setup()
507 spsr |= MODE32_svc << MODE32_SHIFT; in trusty_setup()
[all …]
/external/arm-trusted-firmware/plat/layerscape/common/
Dls_common.c150 uint32_t spsr; in ls_get_spsr_for_bl33_entry() local
160 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in ls_get_spsr_for_bl33_entry()
161 return spsr; in ls_get_spsr_for_bl33_entry()
169 unsigned int hyp_status, mode, spsr; in ls_get_spsr_for_bl33_entry() local
180 spsr = SPSR_MODE32(mode, plat_get_ns_image_entrypoint() & 0x1, in ls_get_spsr_for_bl33_entry()
182 return spsr; in ls_get_spsr_for_bl33_entry()
/external/arm-trusted-firmware/plat/arm/common/
Darm_common.c90 uint32_t spsr; in arm_get_spsr_for_bl33_entry() local
100 spsr = SPSR_64((uint64_t)mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in arm_get_spsr_for_bl33_entry()
101 return spsr; in arm_get_spsr_for_bl33_entry()
109 unsigned int hyp_status, mode, spsr; in arm_get_spsr_for_bl33_entry() local
120 spsr = SPSR_MODE32(mode, plat_get_ns_image_entrypoint() & 0x1, in arm_get_spsr_for_bl33_entry()
122 return spsr; in arm_get_spsr_for_bl33_entry()
/external/arm-trusted-firmware/plat/hisilicon/hikey/
Dhikey_bl2_setup.c84 uint32_t spsr; in hikey_get_spsr_for_bl33_entry() local
94 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in hikey_get_spsr_for_bl33_entry()
95 return spsr; in hikey_get_spsr_for_bl33_entry()
100 unsigned int hyp_status, mode, spsr; in hikey_get_spsr_for_bl33_entry() local
111 spsr = SPSR_MODE32(mode, plat_get_ns_image_entrypoint() & 0x1, in hikey_get_spsr_for_bl33_entry()
113 return spsr; in hikey_get_spsr_for_bl33_entry()
149 bl_mem_params->ep_info.spsr = hikey_get_spsr_for_bl32_entry(); in hikey_bl2_handle_post_image_load()
156 bl_mem_params->ep_info.spsr = hikey_get_spsr_for_bl33_entry(); in hikey_bl2_handle_post_image_load()
/external/arm-trusted-firmware/lib/el3_runtime/aarch64/
Dcontext_mgmt.c101 if (GET_RW(ep->spsr) == MODE_RW_64) in cm_setup_context()
194 if (((GET_RW(ep->spsr) == MODE_RW_64) && (GET_EL(ep->spsr) == MODE_EL2)) in cm_setup_context()
195 || ((GET_RW(ep->spsr) != MODE_RW_64) in cm_setup_context()
196 && (GET_M32(ep->spsr) == MODE32_hyp))) { in cm_setup_context()
210 if ((security_state == SECURE) && (GET_EL(ep->spsr) == MODE_EL2)) { in cm_setup_context()
211 if (GET_RW(ep->spsr) != MODE_RW_64) { in cm_setup_context()
231 if (GET_RW(ep->spsr) == MODE_RW_64) in cm_setup_context()
301 write_ctx_reg(state, CTX_SPSR_EL3, ep->spsr); in cm_setup_context()
685 uintptr_t entrypoint, uint32_t spsr) in cm_set_elr_spsr_el3() argument
696 write_ctx_reg(state, CTX_SPSR_EL3, spsr); in cm_set_elr_spsr_el3()
/external/arm-trusted-firmware/plat/hisilicon/hikey960/
Dhikey960_bl2_setup.c176 uint32_t spsr; in hikey960_get_spsr_for_bl33_entry() local
186 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in hikey960_get_spsr_for_bl33_entry()
187 return spsr; in hikey960_get_spsr_for_bl33_entry()
192 unsigned int hyp_status, mode, spsr; in hikey960_get_spsr_for_bl33_entry() local
203 spsr = SPSR_MODE32(mode, plat_get_ns_image_entrypoint() & 0x1, in hikey960_get_spsr_for_bl33_entry()
205 return spsr; in hikey960_get_spsr_for_bl33_entry()
236 bl_mem_params->ep_info.spsr = hikey960_get_spsr_for_bl32_entry(); in hikey960_bl2_handle_post_image_load()
243 bl_mem_params->ep_info.spsr = hikey960_get_spsr_for_bl33_entry(); in hikey960_bl2_handle_post_image_load()
/external/arm-trusted-firmware/plat/qemu/common/
Dqemu_bl2_setup.c122 uint32_t spsr; in qemu_get_spsr_for_bl33_entry() local
134 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in qemu_get_spsr_for_bl33_entry()
136 spsr = SPSR_MODE32(MODE32_svc, in qemu_get_spsr_for_bl33_entry()
140 return spsr; in qemu_get_spsr_for_bl33_entry()
184 bl_mem_params->ep_info.spsr = qemu_get_spsr_for_bl32_entry(); in qemu_bl2_handle_post_image_load()
212 bl_mem_params->ep_info.spsr = qemu_get_spsr_for_bl33_entry(); in qemu_bl2_handle_post_image_load()
/external/arm-trusted-firmware/services/spd/tlkd/
Dtlkd_common.c85 uint32_t ep_attr, spsr; in tlkd_init_tlk_ep_state() local
98 spsr = SPSR_64(MODE_EL1, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in tlkd_init_tlk_ep_state()
100 spsr = SPSR_MODE32(MODE32_svc, in tlkd_init_tlk_ep_state()
112 tlk_entry_point->spsr = spsr; in tlkd_init_tlk_ep_state()
/external/arm-trusted-firmware/plat/imx/imx8m/imx8mm/
Dimx8mm_bl31_setup.c65 uint32_t spsr; in get_spsr_for_bl33_entry() local
73 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in get_spsr_for_bl33_entry()
74 return spsr; in get_spsr_for_bl33_entry()
124 bl33_image_ep_info.spsr = get_spsr_for_bl33_entry(); in bl31_early_platform_setup2()
132 bl32_image_ep_info.spsr = 0; in bl31_early_platform_setup2()
/external/arm-trusted-firmware/plat/imx/imx8m/imx8mp/
Dimx8mp_bl31_setup.c63 uint32_t spsr; in get_spsr_for_bl33_entry() local
71 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in get_spsr_for_bl33_entry()
72 return spsr; in get_spsr_for_bl33_entry()
122 bl33_image_ep_info.spsr = get_spsr_for_bl33_entry(); in bl31_early_platform_setup2()
130 bl32_image_ep_info.spsr = 0; in bl31_early_platform_setup2()
/external/arm-trusted-firmware/plat/imx/imx8m/imx8mn/
Dimx8mn_bl31_setup.c65 uint32_t spsr; in get_spsr_for_bl33_entry() local
73 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in get_spsr_for_bl33_entry()
74 return spsr; in get_spsr_for_bl33_entry()
124 bl33_image_ep_info.spsr = get_spsr_for_bl33_entry(); in bl31_early_platform_setup2()
132 bl32_image_ep_info.spsr = 0; in bl31_early_platform_setup2()
/external/arm-trusted-firmware/plat/intel/soc/common/aarch64/
Dplatform_common.c44 uint32_t spsr; in socfpga_get_spsr_for_bl33_entry() local
57 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in socfpga_get_spsr_for_bl33_entry()
58 return spsr; in socfpga_get_spsr_for_bl33_entry()
/external/arm-trusted-firmware/plat/socionext/synquacer/
Dsq_bl31_setup.c52 uint32_t spsr; in sq_get_spsr_for_bl33_entry() local
60 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in sq_get_spsr_for_bl33_entry()
61 return spsr; in sq_get_spsr_for_bl33_entry()
99 bl32_image_ep_info.spsr = sq_get_spsr_for_bl32_entry(); in bl31_early_platform_setup2()
115 bl33_image_ep_info.spsr = sq_get_spsr_for_bl33_entry(); in bl31_early_platform_setup2()
/external/arm-trusted-firmware/include/arch/aarch32/
Dsmccc_macros.S36 mrs r2, spsr
40 mrs r2, spsr
44 mrs r2, spsr
48 mrs r2, spsr
52 mrs r2, spsr
57 mrs r2, spsr
82 mrs r12, spsr
/external/arm-trusted-firmware/plat/brcm/common/
Dbrcm_common.c42 uint32_t spsr; in brcm_get_spsr_for_bl33_entry() local
52 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in brcm_get_spsr_for_bl33_entry()
53 return spsr; in brcm_get_spsr_for_bl33_entry()
/external/arm-trusted-firmware/plat/ti/k3/common/
Dk3_bl31_setup.c47 uint32_t spsr; in k3_get_spsr_for_bl33_entry() local
55 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in k3_get_spsr_for_bl33_entry()
56 return spsr; in k3_get_spsr_for_bl33_entry()
76 bl32_image_ep_info.spsr = SPSR_64(MODE_EL1, MODE_SP_ELX, in bl31_early_platform_setup2()
84 bl33_image_ep_info.spsr = k3_get_spsr_for_bl33_entry(); in bl31_early_platform_setup2()
/external/arm-trusted-firmware/plat/imx/imx8m/imx8mq/
Dimx8mq_bl31_setup.c93 uint32_t spsr; in get_spsr_for_bl33_entry() local
101 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in get_spsr_for_bl33_entry()
102 return spsr; in get_spsr_for_bl33_entry()
146 bl33_image_ep_info.spsr = get_spsr_for_bl33_entry(); in bl31_early_platform_setup2()
154 bl32_image_ep_info.spsr = 0; in bl31_early_platform_setup2()
/external/arm-trusted-firmware/plat/intel/soc/stratix10/
Dbl2_plat_setup.c138 uint32_t spsr; in get_spsr_for_bl33_entry() local
151 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in get_spsr_for_bl33_entry()
152 return spsr; in get_spsr_for_bl33_entry()
163 bl_mem_params->ep_info.spsr = get_spsr_for_bl33_entry(); in bl2_plat_handle_post_image_load()
/external/arm-trusted-firmware/plat/intel/soc/agilex/
Dbl2_plat_setup.c142 uint32_t spsr; in get_spsr_for_bl33_entry() local
155 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in get_spsr_for_bl33_entry()
156 return spsr; in get_spsr_for_bl33_entry()
167 bl_mem_params->ep_info.spsr = get_spsr_for_bl33_entry(); in bl2_plat_handle_post_image_load()
/external/arm-trusted-firmware/plat/marvell/armada/common/aarch64/
Dmarvell_common.c112 uint32_t spsr; in marvell_get_spsr_for_bl33_entry() local
125 spsr = SPSR_64(mode, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); in marvell_get_spsr_for_bl33_entry()
126 return spsr; in marvell_get_spsr_for_bl33_entry()
/external/arm-trusted-firmware/plat/renesas/common/
Dbl2_plat_mem_params_desc.c32 .ep_info.spsr = SPSR_64(MODE_EL3,
55 .ep_info.spsr = 0,
71 .ep_info.spsr = SPSR_64(BL33_MODE, MODE_SP_ELX,
/external/arm-trusted-firmware/plat/mediatek/common/
Dmtk_plat_common.c105 uint32_t spsr; in plat_get_spsr_for_bl33_entry() local
118 spsr = SPSR_MODE32(mode, 0, ee, daif); in plat_get_spsr_for_bl33_entry()
119 return spsr; in plat_get_spsr_for_bl33_entry()
/external/arm-trusted-firmware/plat/socionext/uniphier/
Duniphier_image_desc.c49 .ep_info.spsr = SPSR_64(MODE_EL3, MODE_SP_ELX,
71 .ep_info.spsr = SPSR_64(MODE_EL3, MODE_SP_ELX,
89 .ep_info.spsr = SPSR_64(MODE_EL2, MODE_SP_ELX,

12345