TianoCore EDK2 master
Loading...
Searching...
No Matches
PrePiLib.c File Reference
#include <PrePi.h>

Go to the source code of this file.

Typedefs

typedef VOID(EFIAPI * DXE_CORE_ENTRY_POINT) (IN VOID *HobStart)
 

Functions

EFI_STATUS EFIAPI SecWinNtPeiLoadFile (IN VOID *Pe32Data, IN EFI_PHYSICAL_ADDRESS *ImageAddress, IN UINT64 *ImageSize, IN EFI_PHYSICAL_ADDRESS *EntryPoint)
 
STATIC VOID *EFIAPI AllocateCodePages (IN UINTN Pages)
 
EFI_STATUS EFIAPI LoadPeCoffImage (IN VOID *PeCoffImage, OUT EFI_PHYSICAL_ADDRESS *ImageAddress, OUT UINT64 *ImageSize, OUT EFI_PHYSICAL_ADDRESS *EntryPoint)
 
EFI_STATUS EFIAPI LoadDxeCoreFromFfsFile (IN EFI_PEI_FILE_HANDLE FileHandle, IN UINTN StackSize)
 
EFI_STATUS EFIAPI LoadDxeCoreFromFv (IN UINTN *FvInstance OPTIONAL, IN UINTN StackSize)
 
EFI_STATUS EFIAPI DecompressFirstFv (VOID)
 

Detailed Description

Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PrePiLib.c.

Typedef Documentation

◆ DXE_CORE_ENTRY_POINT

typedef VOID(EFIAPI * DXE_CORE_ENTRY_POINT) (IN VOID *HobStart)

Definition at line 112 of file PrePiLib.c.

Function Documentation

◆ AllocateCodePages()

STATIC VOID *EFIAPI AllocateCodePages ( IN UINTN  Pages)

Allocate pages for code.

Parameters
[in]PagesNumber of pages to be allocated.
Returns
Allocated memory.

Definition at line 28 of file PrePiLib.c.

◆ DecompressFirstFv()

EFI_STATUS EFIAPI DecompressFirstFv ( VOID  )

Definition at line 224 of file PrePiLib.c.

◆ LoadDxeCoreFromFfsFile()

EFI_STATUS EFIAPI LoadDxeCoreFromFfsFile ( IN EFI_PEI_FILE_HANDLE  FileHandle,
IN UINTN  StackSize 
)

Definition at line 119 of file PrePiLib.c.

◆ LoadDxeCoreFromFv()

EFI_STATUS EFIAPI LoadDxeCoreFromFv ( IN UINTN *FvInstance  OPTIONAL,
IN UINTN  StackSize 
)

Definition at line 194 of file PrePiLib.c.

◆ LoadPeCoffImage()

EFI_STATUS EFIAPI LoadPeCoffImage ( IN VOID *  PeCoffImage,
OUT EFI_PHYSICAL_ADDRESS ImageAddress,
OUT UINT64 *  ImageSize,
OUT EFI_PHYSICAL_ADDRESS EntryPoint 
)

Definition at line 59 of file PrePiLib.c.