3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 #ifndef __PEI_DXEIPL_H__
21 #define __PEI_DXEIPL_H__
23 #define STACK_SIZE 0x20000
24 #define BSP_STORE_SIZE 0x4000
26 extern BOOLEAN gInMemory
;
29 Transfers control to a function starting with a new stack.
31 Transfers control to the function specified by EntryPoint using the new stack
32 specified by NewStack and passing in the parameters specified by Context1 and
33 Context2. Context1 and Context2 are optional and may be NULL. The function
34 EntryPoint must never return.
36 If EntryPoint is NULL, then ASSERT().
37 If NewStack is NULL, then ASSERT().
39 @param EntryPoint A pointer to function to call with the new stack.
40 @param Context1 A pointer to the context to pass into the EntryPoint
42 @param Context2 A pointer to the context to pass into the EntryPoint
44 @param NewStack A pointer to the new stack to use for the EntryPoint
46 @param NewBsp A pointer to the new BSP for the EntryPoint on IPF. It's
47 Reserved on other architectures.
53 IN SWITCH_STACK_ENTRY_POINT EntryPoint
,
54 IN VOID
*Context1
, OPTIONAL
55 IN VOID
*Context2
, OPTIONAL
63 IN UINT16 SectionType
,
64 OUT EFI_GUID
*FileName
,
71 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL
*PeiEfiPeiPeCoffLoader
,
73 OUT EFI_PHYSICAL_ADDRESS
*ImageAddress
,
74 OUT UINT64
*ImageSize
,
75 OUT EFI_PHYSICAL_ADDRESS
*EntryPoint
81 CreateArchSpecificHobs (
82 OUT EFI_PHYSICAL_ADDRESS
*BspStore
87 GetImageReadFunction (
88 IN PE_COFF_LOADER_IMAGE_CONTEXT
*ImageContext
96 IN OUT UINTN
*ReadSize
,
104 IN EFI_PEI_FV_FILE_LOADER_PPI
*This
,
105 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
106 OUT EFI_PHYSICAL_ADDRESS
*ImageAddress
,
107 OUT UINT64
*ImageSize
,
108 OUT EFI_PHYSICAL_ADDRESS
*EntryPoint
113 IN EFI_FFS_FILE_HEADER
*DxeIpl
,
114 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL
*PeiEfiPeiPeCoffLoader
120 IN EFI_DXE_IPL_PPI
*This
,
121 IN EFI_PEI_SERVICES
**PeiServices
,
122 IN EFI_PEI_HOB_POINTERS HobList
127 IN UINT16 SectionType
,
128 IN OUT EFI_FFS_FILE_HEADER
**RealFfsFileHeader
,
134 PeimInitializeDxeIpl (
135 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
136 IN EFI_PEI_SERVICES
**PeiServices
141 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL
*PeiEfiPeiPeCoffLoader
,
143 IN EFI_MEMORY_TYPE MemoryType
,
144 OUT EFI_PHYSICAL_ADDRESS
*ImageAddress
,
145 OUT UINT64
*ImageSize
,
146 OUT EFI_PHYSICAL_ADDRESS
*EntryPoint
151 CreateIdentityMappingPageTables (
152 IN UINT32 NumberOfProcessorPhysicalAddressBits
158 IN EFI_PHYSICAL_ADDRESS PageTables
,
159 IN EFI_PHYSICAL_ADDRESS HobStart
,
160 IN EFI_PHYSICAL_ADDRESS Stack
,
161 IN EFI_PHYSICAL_ADDRESS CodeEntryPoint1
,
162 IN EFI_PHYSICAL_ADDRESS CodeEntryPoint2