X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FCore%2FDxeIplPeim%2FDxeIpl.h;h=2c711ed97b6775c7bea0059910ad40f3b288e0b6;hp=9e626a7dc79f7d3fa72b565863c37b3f263a35ad;hb=3d109491d637eeb71df8278700b0e1b1863444d3;hpb=eeb1cd5af35f45308aa2ff153feed9f768a6ef77 diff --git a/EdkModulePkg/Core/DxeIplPeim/DxeIpl.h b/EdkModulePkg/Core/DxeIplPeim/DxeIpl.h index 9e626a7dc7..2c711ed97b 100644 --- a/EdkModulePkg/Core/DxeIplPeim/DxeIpl.h +++ b/EdkModulePkg/Core/DxeIplPeim/DxeIpl.h @@ -23,39 +23,9 @@ Abstract: #define STACK_SIZE 0x20000 #define BSP_STORE_SIZE 0x4000 -extern BOOLEAN gInMemory; - -/** - Transfers control to a function starting with a new stack. - - Transfers control to the function specified by EntryPoint using the new stack - specified by NewStack and passing in the parameters specified by Context1 and - Context2. Context1 and Context2 are optional and may be NULL. The function - EntryPoint must never return. - - If EntryPoint is NULL, then ASSERT(). - If NewStack is NULL, then ASSERT(). +#define GET_OCCUPIED_SIZE(ActualSize, Alignment) ((ActualSize + (Alignment - 1)) & ~(Alignment - 1)) - @param EntryPoint A pointer to function to call with the new stack. - @param Context1 A pointer to the context to pass into the EntryPoint - function. - @param Context2 A pointer to the context to pass into the EntryPoint - function. - @param NewStack A pointer to the new stack to use for the EntryPoint - function. - @param NewBsp A pointer to the new BSP for the EntryPoint on IPF. It's - Reserved on other architectures. - -**/ -VOID -EFIAPI -SwitchIplStacks ( - IN SWITCH_STACK_ENTRY_POINT EntryPoint, - IN VOID *Context1, OPTIONAL - IN VOID *Context2, OPTIONAL - IN VOID *NewStack, - IN VOID *NewBsp - ); +extern BOOLEAN gInMemory; EFI_STATUS PeiFindFile ( @@ -77,12 +47,6 @@ PeiLoadFile ( ; -EFI_STATUS -CreateArchSpecificHobs ( - OUT EFI_PHYSICAL_ADDRESS *BspStore - ) -; - EFI_STATUS GetImageReadFunction ( IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext @@ -122,11 +86,19 @@ DxeLoadCore ( IN EFI_PEI_HOB_POINTERS HobList ); +VOID +HandOffToDxeCore ( + IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint, + IN EFI_PEI_HOB_POINTERS HobList, + IN EFI_PEI_PPI_DESCRIPTOR *EndOfPeiSignal + ); + EFI_STATUS PeiProcessFile ( IN UINT16 SectionType, - IN OUT EFI_FFS_FILE_HEADER **RealFfsFileHeader, - OUT VOID **Pe32Data + IN EFI_FFS_FILE_HEADER *FfsFileHeader, + OUT VOID **Pe32Data, + IN EFI_PEI_HOB_POINTERS *OrigHob ); EFI_STATUS @@ -136,33 +108,5 @@ PeimInitializeDxeIpl ( IN EFI_PEI_SERVICES **PeiServices ); -EFI_STATUS -PeiLoadx64File ( - IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader, - IN VOID *Pe32Data, - IN EFI_MEMORY_TYPE MemoryType, - OUT EFI_PHYSICAL_ADDRESS *ImageAddress, - OUT UINT64 *ImageSize, - OUT EFI_PHYSICAL_ADDRESS *EntryPoint - ) -; - -EFI_PHYSICAL_ADDRESS -CreateIdentityMappingPageTables ( - IN UINT32 NumberOfProcessorPhysicalAddressBits - ) -; - -VOID -ActivateLongMode ( - IN EFI_PHYSICAL_ADDRESS PageTables, - IN EFI_PHYSICAL_ADDRESS HobStart, - IN EFI_PHYSICAL_ADDRESS Stack, - IN EFI_PHYSICAL_ADDRESS CodeEntryPoint1, - IN EFI_PHYSICAL_ADDRESS CodeEntryPoint2 - ); - -VOID -LoadGo64Gdt(); #endif