x86_reg_access x86_smm_state
API Reference Manual  /  4 Model-to-Model Interfaces  / 

x86_smm

Description
The smm interface is used to implement a custom SMRAM state save map.

The save_state method is invoked when SMM mode is entered before any cpu state has been modified. The method should save the current cpu state to the SMRAM state save map.

The restore_state method is invoked during execution of the rsm instruction. The method should restore the cpu state from the SMRAM state save map.

The x86_smm_state interface implemented by the cpu can be used to facilitate cpu state changes and SMRAM access.

This interface is internal and may change without notice.

SIM_INTERFACE(x86_smm) {
        void (*save_state)(conf_object_t *obj, conf_object_t *cpu);
        void (*restore_state)(conf_object_t *obj, conf_object_t *cpu);
};
#define X86_SMM_INTERFACE "x86_smm"

Execution Context
Cell Context for all methods.

x86_reg_access x86_smm_state