TianoCore EDK2 master
Loading...
Searching...
No Matches
SecTempRamDone.c
Go to the documentation of this file.
1
9#include <PiPei.h>
10
11#include <Library/DebugLib.h>
12#include <Library/PcdLib.h>
15#include <Guid/FspHeaderFile.h>
16
20VOID
21EFIAPI
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}
FSP_INFO_HEADER *EFIAPI FspFindFspHeader(IN EFI_PHYSICAL_ADDRESS FlashFvFspBase)
EFI_STATUS EFIAPI CallTempRamExit(IN VOID *TempRamExitParam)
VOID *EFIAPI UpdateTempRamExitParam(VOID)
#define NULL
Definition: Base.h:319
#define ASSERT_EFI_ERROR(StatusParameter)
Definition: DebugLib.h:462
#define DEBUG(Expression)
Definition: DebugLib.h:434
#define PcdGet32(TokenName)
Definition: PcdLib.h:362
VOID EFIAPI SecPlatformDisableTemporaryMemory(VOID)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29