Lines Matching refs:security_state
21 void *cm_get_context(uint32_t security_state) in cm_get_context() argument
23 assert(sec_state_is_valid(security_state)); in cm_get_context()
24 return bl1_cpu_context_ptr[security_state]; in cm_get_context()
27 void cm_set_context(void *context, uint32_t security_state) in cm_set_context() argument
29 assert(sec_state_is_valid(security_state)); in cm_set_context()
30 bl1_cpu_context_ptr[security_state] = context; in cm_set_context()
46 unsigned int security_state, mode = MODE_EL1; in bl1_prepare_next_image() local
70 security_state = GET_SECURITY_STATE(next_bl_ep->h.attr); in bl1_prepare_next_image()
73 if (cm_get_context(security_state) == NULL) in bl1_prepare_next_image()
74 cm_set_context(&bl1_cpu_context[security_state], security_state); in bl1_prepare_next_image()
77 if ((security_state != SECURE) && (el_implemented(2) != EL_IMPL_NONE)) { in bl1_prepare_next_image()
89 cm_prepare_el3_exit(security_state); in bl1_prepare_next_image()