]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecTempRamDone.c
eafbadb1529d2d2b612830db589c7c5330154667
2 Sample to provide SecTemporaryRamDone function.
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
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>
18 This interface disables temporary memory in SEC Phase.
22 SecPlatformDisableTemporaryMemory (
27 VOID
*TempRamExitParam
;
28 FSP_INFO_HEADER
*FspHeader
;
30 FspHeader
= FspFindFspHeader (PcdGet32(PcdFspmBaseAddress
));
31 if (FspHeader
== NULL
) {
35 DEBUG((DEBUG_INFO
, "SecPlatformDisableTemporaryMemory enter\n"));
37 TempRamExitParam
= UpdateTempRamExitParam ();
38 Status
= CallTempRamExit (TempRamExitParam
);
39 DEBUG((DEBUG_INFO
, "TempRamExit status: 0x%x\n", Status
));
40 ASSERT_EFI_ERROR(Status
);