VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.c@ 90304

最後變更 在這個檔案從90304是 89983,由 vboxsync 提交於 4 年 前

Devices/EFI: Merge edk-stable202105 and openssl 1.1.1j and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.3 KB
 
1/** @file
2 Runtime DXE part corresponding to StandaloneMM variable module.
3
4This module installs variable arch protocol and variable write arch protocol
5to StandaloneMM runtime variable service.
6
7Copyright (c) 2019 - 2021, Arm Ltd. All rights reserved.
8
9SPDX-License-Identifier: BSD-2-Clause-Patent
10
11**/
12
13#include <Library/DebugLib.h>
14#include <Library/UefiBootServicesTableLib.h>
15
16/**
17 The constructor function installs variable arch protocol and variable
18 write arch protocol to StandaloneMM runtime variable service
19
20 @param ImageHandle The firmware allocated handle for the EFI image.
21 @param SystemTable A pointer to the Management mode System Table.
22
23 @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
24
25**/
26EFI_STATUS
27EFIAPI
28VariableMmDependencyLibConstructor (
29 IN EFI_HANDLE ImageHandle,
30 IN EFI_SYSTEM_TABLE *SystemTable
31 )
32{
33 EFI_STATUS Status;
34 EFI_HANDLE Handle;
35
36 Handle = NULL;
37 Status = gBS->InstallMultipleProtocolInterfaces (
38 &Handle,
39 &gEfiSmmVariableProtocolGuid,
40 NULL,
41 &gSmmVariableWriteGuid,
42 NULL,
43 NULL
44 );
45 ASSERT_EFI_ERROR (Status);
46 return EFI_SUCCESS;
47}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette