3 #include <arch/cache.h>
20 elx->
spsr = raw_read_spsr_el3();
26 regs->
sp = raw_read_sp_el0();
28 elx->
elr = raw_read_elr_el3();
63 raw_write_elr_el3(elx->
elr);
64 raw_write_spsr_el3(elx->
spsr);
70 raw_write_sp_el2(elx->
sp_elx);
#define assert(statement)
#define CPTR_EL3_TCPAC_DISABLE
#define CPTR_EL3_TFP_DISABLE
#define CPTR_EL3_TTA_DISABLE
const struct smm_save_state_ops *legacy_ops __weak
unsigned long long uint64_t
void __weak exc_dispatch(struct exc_state *exc_state, uint64_t id)
void transition_to_el2(void *entry, void *arg, uint64_t spsr)
void exc_entry(struct exc_state *exc_state, uint64_t id)
void trans_switch(struct regs *regs)
static uint8_t get_mode_from_spsr(uint64_t spsr)
static uint8_t get_el_from_spsr(uint64_t spsr)