2 Runtime DXE part corresponding to StandaloneMM variable module.
4 This module installs variable arch protocol and variable write arch protocol
5 to StandaloneMM runtime variable service.
7 Copyright (c) 2019 - 2021, Arm Ltd. All rights reserved.
9 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #include <Library/DebugLib.h>
14 #include <Library/UefiBootServicesTableLib.h>
17 The constructor function installs variable arch protocol and variable
18 write arch protocol to StandaloneMM runtime variable service
20 @param ImageHandle The firmware allocated handle for the EFI image.
21 @param SystemTable A pointer to the Management mode System Table.
23 @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
28 VariableMmDependencyLibConstructor (
29 IN EFI_HANDLE ImageHandle
,
30 IN EFI_SYSTEM_TABLE
*SystemTable
37 Status
= gBS
->InstallMultipleProtocolInterfaces (
39 &gEfiSmmVariableProtocolGuid
,
41 &gSmmVariableWriteGuid
,
45 ASSERT_EFI_ERROR (Status
);