MdeModulePkg/VariableSmmRuntimeDxe: switch to MM communicate 2
Switch to the new MM communicate 2 protocol which supports both traditional and standalone MM. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
committed by
mergify[bot]
parent
fa37a846d0
commit
be4e0cfbad
@@ -20,7 +20,7 @@ extern EFI_GUID gSmmVariableWriteGuid;
|
||||
//
|
||||
// This structure is used for SMM variable. the collected statistics data is saved in SMRAM. It can be got from
|
||||
// SMI handler. The communication buffer should be:
|
||||
// EFI_SMM_COMMUNICATE_HEADER + SMM_VARIABLE_COMMUNICATE_HEADER + payload.
|
||||
// EFI_MM_COMMUNICATE_HEADER + SMM_VARIABLE_COMMUNICATE_HEADER + payload.
|
||||
//
|
||||
typedef struct {
|
||||
UINTN Function;
|
||||
@@ -53,7 +53,7 @@ typedef struct {
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_EXIT_BOOT_SERVICE 6
|
||||
//
|
||||
// The payload for this function is VARIABLE_INFO_ENTRY. The GUID in EFI_SMM_COMMUNICATE_HEADER
|
||||
// The payload for this function is VARIABLE_INFO_ENTRY. The GUID in EFI_MM_COMMUNICATE_HEADER
|
||||
// is gEfiSmmVariableProtocolGuid.
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_GET_STATISTICS 7
|
||||
@@ -81,7 +81,7 @@ typedef struct {
|
||||
///
|
||||
/// Size of SMM communicate header, without including the payload.
|
||||
///
|
||||
#define SMM_COMMUNICATE_HEADER_SIZE (OFFSET_OF (EFI_SMM_COMMUNICATE_HEADER, Data))
|
||||
#define SMM_COMMUNICATE_HEADER_SIZE (OFFSET_OF (EFI_MM_COMMUNICATE_HEADER, Data))
|
||||
|
||||
///
|
||||
/// Size of SMM variable communicate header, without including the payload.
|
||||
|
Reference in New Issue
Block a user