ArmPkg: only attempt buildin MmCommunicationDxe for AArch64
[mirror_edk2.git] / IntelFsp2WrapperPkg / Library / SecFspWrapperPlatformSecLibSample / SecTempRamDone.c
CommitLineData
cf1d4549
JY
1/** @file\r
2 Sample to provide SecTemporaryRamDone function.\r
3\r
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
512e23a3 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
cf1d4549
JY
6\r
7**/\r
8\r
9#include <PiPei.h>\r
10\r
cf1d4549
JY
11#include <Library/DebugLib.h>\r
12#include <Library/PcdLib.h>\r
f86b9293
LG
13#include <Library/FspWrapperApiLib.h>\r
14#include <Library/FspWrapperPlatformLib.h>\r
15#include <Guid/FspHeaderFile.h>\r
cf1d4549
JY
16\r
17/**\r
18This interface disables temporary memory in SEC Phase.\r
19**/\r
20VOID\r
21EFIAPI\r
22SecPlatformDisableTemporaryMemory (\r
23 VOID\r
24 )\r
25{\r
26 EFI_STATUS Status;\r
27 VOID *TempRamExitParam;\r
28 FSP_INFO_HEADER *FspHeader;\r
29\r
30 FspHeader = FspFindFspHeader (PcdGet32(PcdFspmBaseAddress));\r
31 if (FspHeader == NULL) {\r
32 return ;\r
33 }\r
34\r
35 DEBUG((DEBUG_INFO, "SecPlatformDisableTemporaryMemory enter\n"));\r
36\r
f86b9293
LG
37 TempRamExitParam = UpdateTempRamExitParam ();\r
38 Status = CallTempRamExit (TempRamExitParam);\r
cf1d4549
JY
39 DEBUG((DEBUG_INFO, "TempRamExit status: 0x%x\n", Status));\r
40 ASSERT_EFI_ERROR(Status);\r
41\r
42 return ;\r
43}\r