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