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
;
41 IN UINT16 SectionType
,
42 OUT EFI_GUID
*FileName
,
49 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL
*PeiEfiPeiPeCoffLoader
,
51 OUT EFI_PHYSICAL_ADDRESS
*ImageAddress
,
52 OUT UINT64
*ImageSize
,
53 OUT EFI_PHYSICAL_ADDRESS
*EntryPoint
59 CreateArchSpecificHobs (
60 OUT EFI_PHYSICAL_ADDRESS
*BspStore
65 GetImageReadFunction (
66 IN PE_COFF_LOADER_IMAGE_CONTEXT
*ImageContext
74 IN OUT UINTN
*ReadSize
,
82 IN EFI_PEI_FV_FILE_LOADER_PPI
*This
,
83 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
84 OUT EFI_PHYSICAL_ADDRESS
*ImageAddress
,
85 OUT UINT64
*ImageSize
,
86 OUT EFI_PHYSICAL_ADDRESS
*EntryPoint
91 IN EFI_FFS_FILE_HEADER
*DxeIpl
,
92 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL
*PeiEfiPeiPeCoffLoader
98 IN EFI_DXE_IPL_PPI
*This
,
99 IN EFI_PEI_SERVICES
**PeiServices
,
100 IN EFI_PEI_HOB_POINTERS HobList
105 IN UINT16 SectionType
,
106 IN EFI_FFS_FILE_HEADER
*FfsFileHeader
,
108 IN EFI_PEI_HOB_POINTERS
*OrigHob
113 PeimInitializeDxeIpl (
114 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
115 IN EFI_PEI_SERVICES
**PeiServices
120 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL
*PeiEfiPeiPeCoffLoader
,
122 IN EFI_MEMORY_TYPE MemoryType
,
123 OUT EFI_PHYSICAL_ADDRESS
*ImageAddress
,
124 OUT UINT64
*ImageSize
,
125 OUT EFI_PHYSICAL_ADDRESS
*EntryPoint
130 CreateIdentityMappingPageTables (
131 IN UINT32 NumberOfProcessorPhysicalAddressBits
137 IN EFI_PHYSICAL_ADDRESS PageTables
,
138 IN EFI_PHYSICAL_ADDRESS HobStart
,
139 IN EFI_PHYSICAL_ADDRESS Stack
,
140 IN EFI_PHYSICAL_ADDRESS CodeEntryPoint1
,
141 IN EFI_PHYSICAL_ADDRESS CodeEntryPoint2