]>
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 <Ppi/TemporaryRamDone.h>
19 #include <Library/BaseMemoryLib.h>
20 #include <Library/DebugLib.h>
21 #include <Library/PcdLib.h>
22 #include <Library/DebugAgentLib.h>
23 #include <Library/FspPlatformInfoLib.h>
24 #include <Library/FspApiLib.h>
27 This interface disables temporary memory in SEC Phase.
31 SecPlatformDisableTemporaryMemory (
36 VOID
*TempRamExitParam
;
37 FSP_INFO_HEADER
*FspHeader
;
39 FspHeader
= FspFindFspHeader (PcdGet32(PcdFspmBaseAddress
));
40 if (FspHeader
== NULL
) {
44 DEBUG((DEBUG_INFO
, "SecPlatformDisableTemporaryMemory enter\n"));
46 TempRamExitParam
= GetTempRamExitParam ();
47 Status
= CallTempRamExit (FspHeader
, TempRamExitParam
);
48 DEBUG((DEBUG_INFO
, "TempRamExit status: 0x%x\n", Status
));
49 ASSERT_EFI_ERROR(Status
);