]>
Commit | Line | Data |
---|---|---|
8802583c KQ |
1 | /** @file\r |
2 | Runtime DXE part corresponding to StandaloneMM Tcg2 module.\r | |
3 | \r | |
4 | This module installs gTcg2MmSwSmiRegisteredGuid to notify readiness of\r | |
5 | StandaloneMM Tcg2 module.\r | |
6 | \r | |
7 | Copyright (c) 2019 - 2021, Arm Ltd. All rights reserved.\r | |
8 | Copyright (c) Microsoft Corporation.\r | |
9 | \r | |
10 | SPDX-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 | |
29 | EFI_STATUS\r | |
30 | EFIAPI\r | |
31 | Tcg2MmDependencyDxeEntryPoint (\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 |