]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxTraditionalMmLib.c
MdeModulePkg: SmmLockBoxSmmLib: Support StandaloneMm for SmmLockBoxLib
[mirror_edk2.git] / MdeModulePkg / Library / SmmLockBoxLib / SmmLockBoxTraditionalMmLib.c
1 /** @file
2
3 Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
4 Copyright (c) Microsoft Corporation.
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #include <PiSmm.h>
11
12 #include "SmmLockBoxLibPrivate.h"
13
14 /**
15 Constructor for SmmLockBox library.
16 This is used to set SmmLockBox context, which will be used in PEI phase in S3 boot path later.
17
18 @param[in] ImageHandle Image handle of this driver.
19 @param[in] SystemTable A Pointer to the EFI System Table.
20
21 @retval EFI_SUCEESS
22 @return Others Some error occurs.
23 **/
24 EFI_STATUS
25 EFIAPI
26 SmmLockBoxTraditionalConstructor (
27 IN EFI_HANDLE ImageHandle,
28 IN EFI_SYSTEM_TABLE *SystemTable
29 )
30 {
31 return SmmLockBoxMmConstructor ();
32 }
33
34 /**
35 Destructor for SmmLockBox library.
36 This is used to uninstall SmmLockBoxCommunication configuration table
37 if it has been installed in Constructor.
38
39 @param[in] ImageHandle Image handle of this driver.
40 @param[in] SystemTable A Pointer to the EFI System Table.
41
42 @retval EFI_SUCEESS The destructor always returns EFI_SUCCESS.
43
44 **/
45 EFI_STATUS
46 EFIAPI
47 SmmLockBoxTraditionalDestructor (
48 IN EFI_HANDLE ImageHandle,
49 IN EFI_SYSTEM_TABLE *SystemTable
50 )
51 {
52 return SmmLockBoxMmDestructor ();
53 }