Lines Matching refs:security_state
22 void *cm_get_context(uint32_t security_state) in cm_get_context() argument
24 assert(sec_state_is_valid(security_state)); in cm_get_context()
25 return bl1_cpu_context_ptr[security_state]; in cm_get_context()
28 void cm_set_context(void *context, uint32_t security_state) in cm_set_context() argument
30 assert(sec_state_is_valid(security_state)); in cm_set_context()
31 bl1_cpu_context_ptr[security_state] = context; in cm_set_context()
81 unsigned int security_state, mode = MODE_EL1; in bl1_prepare_next_image() local
105 security_state = GET_SECURITY_STATE(next_bl_ep->h.attr); in bl1_prepare_next_image()
108 if (cm_get_context(security_state) == NULL) in bl1_prepare_next_image()
109 cm_set_context(&bl1_cpu_context[security_state], security_state); in bl1_prepare_next_image()
112 if ((security_state != SECURE) && (el_implemented(2) != EL_IMPL_NONE)) { in bl1_prepare_next_image()
124 cm_prepare_el3_exit(security_state); in bl1_prepare_next_image()