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