]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/StandaloneMmTcg2PhysicalPresenceLib.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / SecurityPkg / Library / SmmTcg2PhysicalPresenceLib / StandaloneMmTcg2PhysicalPresenceLib.c
CommitLineData
45939255
KQ
1/** @file\r
2 Handle TPM 2.0 physical presence requests from OS.\r
3\r
4 This library will handle TPM 2.0 physical presence request from OS.\r
5\r
6 Caution: This module requires additional review when modified.\r
7 This driver will have external input - variable.\r
8 This external input must be validated carefully to avoid security issue.\r
9\r
10 Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() and Tcg2PhysicalPresenceLibGetUserConfirmationStatusFunction()\r
11 will receive untrusted input and do validation.\r
12\r
13Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR>\r
14Copyright (c) Microsoft Corporation.\r
15SPDX-License-Identifier: BSD-2-Clause-Patent\r
16\r
17**/\r
18\r
19#include <PiMm.h>\r
20\r
21#include "MmTcg2PhysicalPresenceLibCommon.h"\r
22\r
23/**\r
24 The constructor function locates SmmVariable protocol.\r
25\r
26 It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.\r
27\r
28 @param ImageHandle The firmware allocated handle for the EFI image.\r
29 @param SystemTable A pointer to the EFI System Table.\r
30\r
31 @retval EFI_SUCCESS The constructor successfully added string package.\r
32 @retval Other value The constructor can't add string package.\r
33**/\r
34EFI_STATUS\r
35EFIAPI\r
36Tcg2PhysicalPresenceLibStandaloneMmConstructor (\r
37 IN EFI_HANDLE ImageHandle,\r
38 IN EFI_MM_SYSTEM_TABLE *SystemTable\r
39 )\r
40{\r
41 return Tcg2PhysicalPresenceLibCommonConstructor ();\r
42}\r