#/** @file\r
-# Component description file for PeiMain module\r
+# PeiMain module is core module in PEI phase. It takes responsibilities of:\r
+# 1) Initialize memory, PPI, image services etc, to establish PEIM runtime environment.\r
+# 2) Dispatch PEIM from discovered FV.\r
+# 3) Handoff control to DxeIpl to load DXE core and enter DXE phase.\r
#\r
-# This module provide an DXE CIS compliant implementation.\r
-# Copyright (c) 2006 - 2007, Intel Corporation\r
+# Copyright (c) 2006 - 2010, Intel Corporation\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
#\r
#**/\r
\r
-################################################################################\r
-#\r
-# Defines Section - statements that will be processed to create a Makefile.\r
-#\r
-################################################################################\r
[Defines]\r
INF_VERSION = 0x00010005\r
- BASE_NAME = PeiMain\r
+ BASE_NAME = PeiCore\r
FILE_GUID = 52C05B14-0B98-496c-BC3B-04B50211D680\r
MODULE_TYPE = PEI_CORE\r
VERSION_STRING = 1.0\r
- EDK_RELEASE_VERSION = 0x00020000\r
- EFI_SPECIFICATION_VERSION = 0x00020000\r
-\r
ENTRY_POINT = PeiCore\r
\r
#\r
# The following information is for reference only and not required by the build tools.\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 IPF EBC (EBC is for build only)\r
#\r
\r
-################################################################################\r
-#\r
-# Sources Section - list of files that are required for the build to succeed.\r
-#\r
-################################################################################\r
-\r
-[Sources.common]\r
+[Sources]\r
StatusCode/StatusCode.c\r
Security/Security.c\r
Reset/Reset.c\r
Image/Image.c\r
Hob/Hob.c\r
FwVol/FwVol.c\r
+ FwVol/FwVol.h\r
Dispatcher/Dispatcher.c\r
- Dependency/dependency.c\r
- Dependency/dependency.h\r
+ Dependency/Dependency.c\r
+ Dependency/Dependency.h\r
BootMode/BootMode.c\r
+ CpuIo/CpuIo.c\r
+ PciCfg2/PciCfg2.c\r
PeiMain.h\r
- CommonHeader.h\r
-\r
-[Sources.Ia32]\r
- Dispatcher/Stack.c\r
-\r
-[Sources.X64]\r
- Dispatcher/Stack.c\r
-\r
-[Sources.IPF]\r
- Ipf/Stack.c\r
- Ipf/IpfPeiMain.h\r
- Ipf/IpfCpuCore.s\r
- Ipf/IpfCpuCore.i\r
- Ipf/SwitchToCacheMode.c\r
-\r
-[Sources.EBC]\r
- Dispatcher/Stack.c\r
-\r
-\r
-################################################################################\r
-#\r
-# Includes Section - list of Include locations that are required for\r
-# this module.\r
-#\r
-################################################################################\r
-\r
-[Includes]\r
- $(WORKSPACE)/MdePkg\Include/Library\r
-\r
-################################################################################\r
-#\r
-# Package Dependency Section - list of Package files that are required for\r
-# this module.\r
-#\r
-################################################################################\r
\r
[Packages]\r
- MdeModulePkg/MdeModulePkg.dec\r
MdePkg/MdePkg.dec\r
- IntelFrameworkPkg/IntelFrameworkPkg.dec\r
-\r
-################################################################################\r
-#\r
-# Library Class Section - list of Library Classes that are required for\r
-# this module.\r
-#\r
-################################################################################\r
+ MdeModulePkg/MdeModulePkg.dec\r
\r
[LibraryClasses]\r
TimerLib\r
PerformanceLib\r
HobLib\r
BaseLib\r
- OldPeiCoreEntryPoint\r
+ PeiCoreEntryPoint\r
DebugLib\r
-\r
-\r
-################################################################################\r
-#\r
-# Guid C Name Section - list of Guids that this module uses or produces.\r
-#\r
-################################################################################\r
+ MemoryAllocationLib\r
+ CacheMaintenanceLib\r
+ PeCoffLib\r
+ PeiServicesTablePointerLib\r
\r
[Guids]\r
- gEfiPeiCorePrivateGuid # PRIVATE\r
-\r
-\r
-################################################################################\r
-#\r
-# PPI C Name Section - list of PPI and PPI Notify C Names that this module\r
-# uses or produces.\r
-#\r
-################################################################################\r
-\r
+ gPeiAprioriFileNameGuid ## CONSUMES ## GUID\r
+ gEfiFirmwareFileSystem2Guid ## CONSUMES ## FV\r
+ \r
[Ppis]\r
- gEfiPeiSecurityPpiGuid # PPI_NOTIFY SOMETIMES_CONSUMED\r
- gEfiPeiStatusCodePpiGuid # PPI SOMETIMES_CONSUMED\r
- gEfiPeiResetPpiGuid # PPI SOMETIMES_CONSUMED\r
- gEfiDxeIplPpiGuid # PPI ALWAYS_CONSUMED\r
- gEfiPeiFvFileLoaderPpiGuid # PPI ALWAYS_CONSUMED\r
- gEfiFindFvPpiGuid # PPI ALWAYS_CONSUMED\r
- gEfiPeiMemoryDiscoveredPpiGuid # PPI ALWAYS_PRODUCED\r
-\r
+ gEfiPeiStatusCodePpiGuid ## SOMETIMES_CONSUMES (PeiReportStatusService is not ready if this PPI doesn't exist)\r
+ gEfiPeiResetPpiGuid ## SOMETIMES_CONSUMES (PeiResetService is not ready if this PPI doesn't exist) \r
+ gEfiDxeIplPpiGuid ## CONSUMES\r
+ gEfiPeiMemoryDiscoveredPpiGuid ## PRODUCES\r
+ gEfiPeiDecompressPpiGuid ## CONSUMES\r
+ gEfiPeiFirmwareVolumeInfoPpiGuid ## NOTIFY ## SOMETIMES_PRODUCES (Produce FvInfoPpi if the encapsulated FvImage is found) \r
+ gEfiPeiLoadFilePpiGuid ## PRODUCES ## SOMETIMES_CONSUMES (The default load PeImage logic will be used when this PPI doesn't exist)\r
+ gEfiPeiSecurity2PpiGuid ## NOTIFY\r
+ gEfiTemporaryRamSupportPpiGuid ## CONSUMES\r
+\r
+[FixedPcd]\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported ## CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv ## CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPpiSupported ## CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdLoadModuleAtFixAddressEnable ## CONSUMES \r
+\r
+[Pcd] \r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeiStackSize ## CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst ## CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdLoadFixAddressPeiCodePageNumber ## SOMETIMES_CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdLoadFixAddressBootTimeCodePageNumber ## SOMETIMES_CONSUMES \r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdLoadFixAddressRuntimeCodePageNumber ## SOMETIMES_CONSUMES \r
+ \r