Last change
on this file since 108794 was 108794, checked in by vboxsync, 2 weeks ago |
Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.4 KB
|
Line | |
---|
1 | /** @file
|
---|
2 | LockBox Dependency DXE Library.
|
---|
3 |
|
---|
4 | By installing the LockBox protocol with the gEfiLockBoxProtocolGuid,
|
---|
5 | it signals that the LockBox API is fully operational and ready for use.
|
---|
6 |
|
---|
7 | Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
|
---|
8 |
|
---|
9 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
10 |
|
---|
11 | **/
|
---|
12 |
|
---|
13 | #include <Uefi.h>
|
---|
14 | #include <Library/UefiBootServicesTableLib.h>
|
---|
15 | #include <Library/DebugLib.h>
|
---|
16 | #include <Protocol/LockBox.h>
|
---|
17 |
|
---|
18 | /**
|
---|
19 | The constructor function of SmmLockBoxMmDependency.
|
---|
20 |
|
---|
21 | It attempts to install the gEfiLockBoxProtocolGuid protocol into the system's DXE database
|
---|
22 | with NULL as notify.
|
---|
23 |
|
---|
24 | @param ImageHandle The firmware allocated handle for the EFI image.
|
---|
25 | @param SystemTable A pointer to the Management mode System Table.
|
---|
26 |
|
---|
27 | @retval EFI_SUCCESS The protocol was successfully installed into the DXE database.
|
---|
28 | @retval Others An error occurred while installing the protocol.
|
---|
29 | **/
|
---|
30 | EFI_STATUS
|
---|
31 | EFIAPI
|
---|
32 | SmmLockBoxMmDependencyConstructor (
|
---|
33 | IN EFI_HANDLE ImageHandle,
|
---|
34 | IN EFI_SYSTEM_TABLE *SystemTable
|
---|
35 | )
|
---|
36 | {
|
---|
37 | EFI_STATUS Status;
|
---|
38 |
|
---|
39 | //
|
---|
40 | // Install NULL to DXE data base as notify
|
---|
41 | //
|
---|
42 | Status = gBS->InstallProtocolInterface (
|
---|
43 | &ImageHandle,
|
---|
44 | &gEfiLockBoxProtocolGuid,
|
---|
45 | EFI_NATIVE_INTERFACE,
|
---|
46 | NULL
|
---|
47 | );
|
---|
48 | ASSERT_EFI_ERROR (Status);
|
---|
49 | return Status;
|
---|
50 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.