29 IN UINT64 StartTimeStamp
42 HobList = HobConstructor (
43 (VOID *)UefiMemoryBase,
45 (VOID *)UefiMemoryBase,
58 ProcessLibraryConstructorList ();
69 "UEFI firmware (version %s built at %a on %a)\n\r",
70 (CHAR16 *)
PcdGetPtr (PcdFirmwareVersionString),
77 StacksSize =
PcdGet32 (PcdCPUCorePrimaryStackSize);
94 Status = DecompressFirstFv ();
98 Status = LoadDxeCoreFromFv (
NULL, SIZE_128KB);
109 UINT64 StartTimeStamp;
119 ArmDisableDataCache ();
121 ArmInvalidateInstructionCache ();
123 ArmEnableInstructionCache ();
125 PrePiMain (UefiMemoryBase, StacksBase, StartTimeStamp);
144 EFI_FV_FILETYPE_SECURITY_CORE,
151 if (EFI_ERROR (Status)) {
157 ZeroMem (&ImageContext,
sizeof ImageContext);
VOID ArchInitialize(VOID)
UINT64 EFIAPI GetPerformanceCounter(VOID)
VOID *EFIAPI InvalidateDataCacheRange(IN VOID *Address, IN UINTN Length)
RETURN_STATUS EFIAPI SerialPortInitialize(VOID)
UINTN EFIAPI SerialPortWrite(IN UINT8 *Buffer, IN UINTN NumberOfBytes)
VOID EFIAPI BuildCpuHob(IN UINT8 SizeOfMemorySpace, IN UINT8 SizeOfIoSpace)
VOID EFIAPI BuildStackHob(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length)
VOID *EFIAPI ZeroMem(OUT VOID *Buffer, IN UINTN Length)
UINTN EFIAPI AsciiSPrint(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString,...)
#define ASSERT_EFI_ERROR(StatusParameter)
EFI_STATUS EFIAPI MemoryPeim(IN EFI_PHYSICAL_ADDRESS UefiMemoryBase, IN UINT64 UefiMemorySize)
#define PcdGet64(TokenName)
#define FixedPcdGet32(TokenName)
#define PcdGet8(TokenName)
#define PcdGet32(TokenName)
#define PcdGetPtr(TokenName)
RETURN_STATUS EFIAPI PeCoffLoaderRelocateImage(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext)
RETURN_STATUS(EFIAPI * PE_COFF_LOADER_READ_FILE)(IN VOID *FileHandle, IN UINTN FileOffset, IN OUT UINTN *ReadSize, OUT VOID *Buffer)
RETURN_STATUS EFIAPI PeCoffLoaderGetImageInfo(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext)
VOID CEntryPoint(IN UINTN UefiMemoryBase, IN UINTN StackBase)
EFI_STATUS EFIAPI PlatformPeim(VOID)
VOID * EFI_PEI_FILE_HANDLE
EFI_STATUS EFIAPI SetBootMode(IN EFI_BOOT_MODE BootMode)
EFI_STATUS EFIAPI FfsFindSectionData(IN EFI_SECTION_TYPE SectionType, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData)
EFI_STATUS EFIAPI FfsFindNextFile(IN EFI_FV_FILETYPE SearchType, IN EFI_PEI_FV_HANDLE VolumeHandle, IN OUT EFI_PEI_FILE_HANDLE *FileHandle)
PE_COFF_LOADER_READ_FILE ImageRead
PHYSICAL_ADDRESS ImageAddress