]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Tcg/Tcg2Smm/Tcg2MmDependencyDxe.c
SecurityPkg: Apply uncrustify changes
[mirror_edk2.git] / SecurityPkg / Tcg / Tcg2Smm / Tcg2MmDependencyDxe.c
CommitLineData
8802583c
KQ
1/** @file\r
2 Runtime DXE part corresponding to StandaloneMM Tcg2 module.\r
3\r
4This module installs gTcg2MmSwSmiRegisteredGuid to notify readiness of\r
5StandaloneMM Tcg2 module.\r
6\r
7Copyright (c) 2019 - 2021, Arm Ltd. All rights reserved.\r
8Copyright (c) Microsoft Corporation.\r
9\r
10SPDX-License-Identifier: BSD-2-Clause-Patent\r
11\r
12**/\r
13\r
14#include <PiDxe.h>\r
15\r
16#include <Library/DebugLib.h>\r
17#include <Library/UefiBootServicesTableLib.h>\r
18\r
19/**\r
20 The constructor function installs gTcg2MmSwSmiRegisteredGuid to notify\r
21 readiness of StandaloneMM Tcg2 module.\r
22\r
23 @param ImageHandle The firmware allocated handle for the EFI image.\r
24 @param SystemTable A pointer to the Management mode System Table.\r
25\r
26 @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r
27\r
28**/\r
29EFI_STATUS\r
30EFIAPI\r
31Tcg2MmDependencyDxeEntryPoint (\r
c411b485
MK
32 IN EFI_HANDLE ImageHandle,\r
33 IN EFI_SYSTEM_TABLE *SystemTable\r
8802583c
KQ
34 )\r
35{\r
c411b485
MK
36 EFI_STATUS Status;\r
37 EFI_HANDLE Handle;\r
8802583c
KQ
38\r
39 Handle = NULL;\r
40 Status = gBS->InstallProtocolInterface (\r
41 &Handle,\r
42 &gTcg2MmSwSmiRegisteredGuid,\r
43 EFI_NATIVE_INTERFACE,\r
44 NULL\r
45 );\r
46 ASSERT_EFI_ERROR (Status);\r
47 return EFI_SUCCESS;\r
48}\r