/device/linaro/bootloader/arm-trusted-firmware/services/spd/tspd/ |
D | tspd_main.c | 61 assert(handle == cm_get_context(SECURE)); in tspd_handle_sp_preemption() 62 cm_el1_sysregs_context_save(SECURE); in tspd_handle_sp_preemption() 113 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_sel1_interrupt_handler() 136 cm_el1_sysregs_context_restore(SECURE); in tspd_sel1_interrupt_handler() 137 cm_set_elr_spsr_el3(SECURE, (uint64_t) &tsp_vectors->sel1_intr_entry, in tspd_sel1_interrupt_handler() 140 cm_set_next_eret_context(SECURE); in tspd_sel1_interrupt_handler() 164 assert(get_interrupt_src_ss(flags) == SECURE); in tspd_ns_interrupt_handler() 170 disable_intr_rm_local(INTR_TYPE_NS, SECURE); in tspd_ns_interrupt_handler() 193 tsp_ep_info = bl31_plat_get_next_image_ep_info(SECURE); in tspd_setup() 220 bl31_set_next_image_type(SECURE); in tspd_setup() [all …]
|
D | tspd_common.c | 46 cm_set_context(&tsp_ctx->cpu_ctx, SECURE); in tspd_init_tsp_ep_state() 49 ep_attr = SECURE | EP_ST_ENABLE; in tspd_init_tsp_ep_state() 77 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_entry() 78 cm_el1_sysregs_context_restore(SECURE); in tspd_synchronous_sp_entry() 79 cm_set_next_eret_context(SECURE); in tspd_synchronous_sp_entry() 102 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_exit() 103 cm_el1_sysregs_context_save(SECURE); in tspd_synchronous_sp_exit() 129 cm_set_elr_el3(SECURE, in tspd_abort_preempted_smc()
|
D | tspd_pm.c | 44 cm_set_elr_el3(SECURE, (uint64_t) &tsp_vectors->cpu_off_entry); in tspd_cpu_off_handler() 83 cm_set_elr_el3(SECURE, (uint64_t) &tsp_vectors->cpu_suspend_entry); in tspd_cpu_suspend_handler() 126 disable_intr_rm_local(INTR_TYPE_NS, SECURE); in tspd_cpu_on_finish_handler() 161 cm_set_elr_el3(SECURE, (uint64_t) &tsp_vectors->cpu_resume_entry); in tspd_cpu_suspend_finish_handler() 203 cm_set_elr_el3(SECURE, (uint64_t) &tsp_vectors->system_off_entry); in tspd_system_off() 229 cm_set_elr_el3(SECURE, (uint64_t) &tsp_vectors->system_reset_entry); in tspd_system_reset()
|
/device/linaro/bootloader/arm-trusted-firmware/services/spd/tlkd/ |
D | tlkd_common.c | 26 cm_el1_sysregs_context_save(SECURE); in tlkd_va_translate() 62 cm_el1_sysregs_context_restore(SECURE); in tlkd_va_translate() 65 write_scr(cm_get_scr_el3(SECURE)); in tlkd_va_translate() 92 cm_set_context(&tlk_ctx->cpu_ctx, SECURE); in tlkd_init_tlk_ep_state() 103 ep_attr = SECURE | EP_ST_ENABLE; in tlkd_init_tlk_ep_state() 129 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx); in tlkd_synchronous_sp_entry() 130 cm_el1_sysregs_context_restore(SECURE); in tlkd_synchronous_sp_entry() 131 cm_set_next_eret_context(SECURE); in tlkd_synchronous_sp_entry() 155 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx); in tlkd_synchronous_sp_exit() 156 cm_el1_sysregs_context_save(SECURE); in tlkd_synchronous_sp_exit()
|
D | tlkd_main.c | 62 tlk_ep_info = bl31_plat_get_next_image_ep_info(SECURE); in tlkd_setup() 111 tlk_entry_point = bl31_plat_get_next_image_ep_info(SECURE); in tlkd_init() 171 assert(handle == cm_get_context(SECURE)); in tlkd_smc_handler() 172 cm_el1_sysregs_context_save(SECURE); in tlkd_smc_handler() 237 assert(&tlk_ctx.cpu_ctx == cm_get_context(SECURE)); in tlkd_smc_handler() 248 cm_el1_sysregs_context_restore(SECURE); in tlkd_smc_handler() 249 cm_set_next_eret_context(SECURE); in tlkd_smc_handler() 320 cm_el1_sysregs_context_save(SECURE); in tlkd_smc_handler()
|
/device/linaro/bootloader/arm-trusted-firmware/services/spd/opteed/ |
D | opteed_main.c | 72 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_sel1_interrupt_handler() 74 cm_set_elr_el3(SECURE, (uint64_t)&optee_vectors->fiq_entry); in opteed_sel1_interrupt_handler() 75 cm_el1_sysregs_context_restore(SECURE); in opteed_sel1_interrupt_handler() 76 cm_set_next_eret_context(SECURE); in opteed_sel1_interrupt_handler() 108 optee_ep_info = bl31_plat_get_next_image_ep_info(SECURE); in opteed_setup() 166 optee_entry_point = bl31_plat_get_next_image_ep_info(SECURE); in opteed_init() 231 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_smc_handler() 238 cm_set_elr_el3(SECURE, (uint64_t) in opteed_smc_handler() 241 cm_set_elr_el3(SECURE, (uint64_t) in opteed_smc_handler() 245 cm_el1_sysregs_context_restore(SECURE); in opteed_smc_handler() [all …]
|
D | opteed_common.c | 37 cm_set_context(&optee_ctx->cpu_ctx, SECURE); in opteed_init_optee_ep_state() 40 ep_attr = SECURE | EP_ST_ENABLE; in opteed_init_optee_ep_state() 76 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_entry() 77 cm_el1_sysregs_context_restore(SECURE); in opteed_synchronous_sp_entry() 78 cm_set_next_eret_context(SECURE); in opteed_synchronous_sp_entry() 101 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_exit() 102 cm_el1_sysregs_context_save(SECURE); in opteed_synchronous_sp_exit()
|
D | opteed_pm.c | 37 cm_set_elr_el3(SECURE, (uint64_t) &optee_vectors->cpu_off_entry); in opteed_cpu_off_handler() 70 cm_set_elr_el3(SECURE, (uint64_t) &optee_vectors->cpu_suspend_entry); in opteed_cpu_suspend_handler() 139 cm_set_elr_el3(SECURE, (uint64_t) &optee_vectors->cpu_resume_entry); in opteed_cpu_suspend_finish_handler() 175 cm_set_elr_el3(SECURE, (uint64_t) &optee_vectors->system_off_entry); in opteed_system_off() 195 cm_set_elr_el3(SECURE, (uint64_t) &optee_vectors->system_reset_entry); in opteed_system_reset()
|
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/common/aarch64/ |
D | arm_bl2_mem_params_desc.c | 28 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE), 46 SECURE | EXECUTABLE | EP_FIRST_EXE), 66 SECURE | EXECUTABLE | EP_FIRST_EXE), 92 VERSION_2, entry_point_info_t, SECURE | EXECUTABLE), 111 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE), 129 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE),
|
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey/ |
D | hikey_bl2_mem_params_desc.c | 28 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE), 46 SECURE | EXECUTABLE | EP_FIRST_EXE), 66 SECURE | EXECUTABLE | EP_FIRST_EXE), 92 VERSION_2, entry_point_info_t, SECURE | EXECUTABLE), 111 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE), 129 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE),
|
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey960/ |
D | hikey960_bl2_mem_params_desc.c | 28 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE), 46 SECURE | EXECUTABLE | EP_FIRST_EXE), 66 SECURE | EXECUTABLE | EP_FIRST_EXE), 92 VERSION_2, entry_point_info_t, SECURE | EXECUTABLE), 111 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE), 129 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE),
|
/device/linaro/bootloader/arm-trusted-firmware/bl1/ |
D | bl1_fwu.c | 241 if (GET_SECURITY_STATE(flags) == SECURE) { in bl1_fwu_image_copy() 383 if (GET_SECURITY_STATE(flags) == SECURE) { in bl1_fwu_image_auth() 390 if (GET_SECURITY_STATE(image_desc->ep_info.h.attr) == SECURE) { in bl1_fwu_image_auth() 508 (GET_SECURITY_STATE(flags) == SECURE) || in bl1_fwu_image_execute() 530 *handle = cm_get_context(SECURE); in bl1_fwu_image_execute() 532 *handle = smc_get_ctx(SECURE); in bl1_fwu_image_execute() 562 assert(GET_SECURITY_STATE(image_desc->ep_info.h.attr) == SECURE); in bl1_fwu_image_resume() 565 if (caller_sec_state == SECURE) { in bl1_fwu_image_resume() 576 resume_sec_state = SECURE; in bl1_fwu_image_resume() 580 (resume_sec_state == SECURE) ? "secure" : "normal"); in bl1_fwu_image_resume() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/qemu/ |
D | qemu_bl2_mem_params_desc.c | 26 SECURE | EXECUTABLE | EP_FIRST_EXE), 42 SECURE | EXECUTABLE | EP_FIRST_EXE), 65 entry_point_info_t, SECURE | EXECUTABLE), 84 entry_point_info_t, SECURE | NON_EXECUTABLE), 102 entry_point_info_t, SECURE | NON_EXECUTABLE),
|
/device/linaro/bootloader/arm-trusted-firmware/bl1/tbbr/ |
D | tbbr_img_desc.c | 21 VERSION_1, entry_point_info_t, SECURE), 41 VERSION_1, entry_point_info_t, SECURE), 54 VERSION_1, entry_point_info_t, SECURE | EXECUTABLE),
|
/device/linaro/bootloader/arm-trusted-firmware/services/spd/trusty/ |
D | trusty.c | 232 entry_point_info_t *ep_info = bl31_plat_get_next_image_ep_info(SECURE); in trusty_smc_handler() 247 ret = trusty_context_switch(SECURE, x1, 0, 0, 0); in trusty_smc_handler() 299 ep_info = bl31_plat_get_next_image_ep_info(SECURE); in trusty_init() 304 cm_set_context(&ctx->cpu_ctx, SECURE); in trusty_init() 314 cm_set_elr_el3(SECURE, ep_info->pc + (1U << 5)); in trusty_init() 317 cm_el1_sysregs_context_restore(SECURE); in trusty_init() 318 cm_set_next_eret_context(SECURE); in trusty_init() 395 ep_info = bl31_plat_get_next_image_ep_info(SECURE); in trusty_setup() 402 SET_PARAM_HEAD(ep_info, PARAM_EP, VERSION_1, SECURE | EP_ST_ENABLE); in trusty_setup()
|
/device/linaro/bootloader/arm-trusted-firmware/plat/nvidia/tegra/soc/t186/ |
D | plat_memctrl.c | 100 mc_make_sec_cfg(AXISW, SECURE, NO_OVERRIDE, DISABLE), 103 mc_make_sec_cfg(GPUSWR2, SECURE, NO_OVERRIDE, DISABLE), 115 mc_make_sec_cfg(GPUSRD, SECURE, NO_OVERRIDE, DISABLE), 125 mc_make_sec_cfg(AXISR, SECURE, NO_OVERRIDE, DISABLE), 156 mc_make_sec_cfg(GPUSWR, SECURE, NO_OVERRIDE, DISABLE), 159 mc_make_sec_cfg(GPUSRD2, SECURE, NO_OVERRIDE, DISABLE),
|
/device/linaro/bootloader/arm-trusted-firmware/include/plat/common/ |
D | common_def.h | 41 VERSION_2, entry_point_info_t, SECURE | EXECUTABLE),\ 51 VERSION_1, entry_point_info_t, SECURE | EXECUTABLE),\
|
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/common/aarch32/ |
D | arm_bl2_mem_params_desc.c | 28 VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE), 45 SECURE | EXECUTABLE | EP_FIRST_EXE),
|
/device/linaro/bootloader/arm-trusted-firmware/lib/el3_runtime/aarch64/ |
D | context_mgmt.c | 89 if (security_state != SECURE) in cm_init_context_common() 173 if (security_state == SECURE) { in cm_init_context_common() 445 if (security_state == SECURE) in cm_el1_sysregs_context_save() 462 if (security_state == SECURE) in cm_el1_sysregs_context_restore()
|
/device/linaro/bootloader/arm-trusted-firmware/plat/socionext/uniphier/ |
D | uniphier_image_desc.c | 39 SECURE | EXECUTABLE | EP_FIRST_EXE), 61 SECURE | EXECUTABLE),
|
/device/linaro/bootloader/arm-trusted-firmware/include/common/ |
D | ep_info.h | 13 #define SECURE U(0x0) macro 15 #define sec_state_is_valid(s) (((s) == SECURE) || ((s) == NON_SECURE))
|
/device/linaro/bootloader/arm-trusted-firmware/lib/el3_runtime/aarch32/ |
D | context_mgmt.c | 75 if (security_state != SECURE) in cm_init_context_common() 78 if (security_state != SECURE) { in cm_init_context_common()
|
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/board/common/aarch64/ |
D | board_arm_helpers.S | 26 mov x2, #(SECURE << V2M_SYS_LED_SS_SHIFT)
|
/device/linaro/bootloader/arm-trusted-firmware/plat/common/ |
D | plat_gicv3.c | 148 if (security_state == SECURE) in plat_interrupt_type_to_line() 157 if (security_state == SECURE) in plat_interrupt_type_to_line()
|
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/common/ |
D | arm_bl1_fwu.c | 65 if (GET_SECURITY_STATE(flags) == SECURE) in bl1_plat_mem_check()
|