x86_smm x86_tlb
API Reference Manual  /  4 Model-to-Model Interfaces  / 

x86_smm_state

Description
The smm state interface is implemented by the cpu and is typically used by objects implementing the x86_smm interface.

The get_state method saves the cpu state in the state struct. This method is intended to be used during SMM entry.

The set_state method restores the cpu state from the state struct. This method is intended to be used during SMM exit.

The smram_read and smram_write methods can be used to access the SMRAM during SMM entry/exit.

This interface is internal and may change without notice.

SIM_INTERFACE(x86_smm_state) {
        void (*get_state)(conf_object_t *cpu, smm_reg_state_t *state);
        void (*set_state)(conf_object_t *cpu, const smm_reg_state_t *state);

        uint64 (*smram_read)(conf_object_t *obj,
                             unsigned smram_offs, unsigned len);
        void (*smram_write)(conf_object_t *obj,
                            unsigned smram_offs, unsigned len, uint64 val);
};
#define X86_SMM_STATE_INTERFACE "x86_smm_state"

Execution Context
Cell Context for all methods.

x86_smm x86_tlb