]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecTempRamDone.c
2 Sample to provide SecTemporaryRamDone function.
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include <Library/DebugLib.h>
18 #include <Library/PcdLib.h>
19 #include <Library/FspWrapperApiLib.h>
20 #include <Library/FspWrapperPlatformLib.h>
21 #include <Guid/FspHeaderFile.h>
24 This interface disables temporary memory in SEC Phase.
28 SecPlatformDisableTemporaryMemory (
33 VOID
*TempRamExitParam
;
34 FSP_INFO_HEADER
*FspHeader
;
36 FspHeader
= FspFindFspHeader (PcdGet32(PcdFspmBaseAddress
));
37 if (FspHeader
== NULL
) {
41 DEBUG((DEBUG_INFO
, "SecPlatformDisableTemporaryMemory enter\n"));
43 TempRamExitParam
= UpdateTempRamExitParam ();
44 Status
= CallTempRamExit (TempRamExitParam
);
45 DEBUG((DEBUG_INFO
, "TempRamExit status: 0x%x\n", Status
));
46 ASSERT_EFI_ERROR(Status
);