Home | History | Annotate | Download | only in bl31

Lines Matching refs:scr_el3

136 	uint32_t scr_el3;
153 scr_el3 = read_scr();
154 scr_el3 &= ~(SCR_NS_BIT | SCR_RW_BIT | SCR_FIQ_BIT | SCR_IRQ_BIT |
158 scr_el3 |= SCR_NS_BIT;
161 scr_el3 |= SCR_RW_BIT;
164 scr_el3 |= SCR_ST_BIT;
166 scr_el3 |= get_scr_el3_from_routing_model(security_state);
175 * via SCR_EL3.HCE.
195 scr_el3 |= SCR_HCE_BIT;
200 write_ctx_reg(state, CTX_SCR_EL3, scr_el3);
222 uint32_t sctlr_elx, scr_el3, cptr_el2;
228 scr_el3 = read_ctx_reg(get_el3state_ctx(ctx), CTX_SCR_EL3);
229 if (scr_el3 & SCR_HCE_BIT) {
240 /* HCR_EL2 = 0, except RW bit set to match SCR_EL3 */
241 write_hcr_el2((scr_el3 & SCR_RW_BIT) ? HCR_RW_BIT : 0);
329 * This function updates a single bit in the SCR_EL3 member of the 'cpu_context'
339 uint32_t scr_el3;
351 * Get the SCR_EL3 value from the cpu context, clear the desired bit
355 scr_el3 = read_ctx_reg(state, CTX_SCR_EL3);
356 scr_el3 &= ~(1 << bit_pos);
357 scr_el3 |= value << bit_pos;
358 write_ctx_reg(state, CTX_SCR_EL3, scr_el3);
362 * This function retrieves SCR_EL3 member of 'cpu_context' pertaining to the