+++ /dev/null
-/** @file\r
-\r
- Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include <PiPei.h>\r
-\r
-#include <Library/DebugLib.h>\r
-#include <Library/PrePiLib.h>\r
-#include <Library/PcdLib.h>\r
-\r
-#include <Ppi/GuidedSectionExtraction.h>\r
-\r
-VOID\r
-_ModuleEntryPoint (\r
- VOID\r
- )\r
-{\r
-}\r
-\r
-VOID\r
-CEntryPoint (\r
- VOID *MemoryBase,\r
- UINTN MemorySize,\r
- VOID *StackBase,\r
- UINTN StackSize\r
- )\r
-{\r
- EFI_PHYSICAL_ADDRESS MemoryBegin;\r
- UINT64 MemoryLength;\r
- VOID *HobBase;\r
-\r
- //\r
- // Boot strap the C environment so the other library services will work properly.\r
- //\r
- MemoryBegin = (EFI_PHYSICAL_ADDRESS)(UINTN)MemoryBase;\r
- MemoryLength = (UINT64)MemorySize;\r
- HobBase = (VOID *)(UINTN)(FixedPcdGet32(PcdEmbeddedFdBaseAddress) + FixedPcdGet32(PcdEmbeddedFdSize));\r
- CreateHobList (MemoryBase, MemorySize, HobBase, StackBase);\r
-\r
- MemoryBegin = (EFI_PHYSICAL_ADDRESS)(UINTN)StackBase;\r
- MemoryLength = (UINT64)StackSize;\r
- UpdateStackHob (MemoryBegin, MemoryLength);\r
-\r
- DEBUG ((DEBUG_ERROR, "CEntryPoint (%x,%x,%x,%x)\n", MemoryBase, MemorySize, StackBase, StackSize));\r
-\r
- //\r
- // Add your C code stuff here....\r
- //\r
-\r
-\r
- //\r
- // Load the DXE Core and transfer control to it\r
- //\r
-\r
- // Give the DXE Core access to our DEBUG and ASSERT infrastructure so this will work prior\r
- // to the DXE version being loaded. Thus we close the debugging gap between phases.\r
- AddDxeCoreReportStatusCodeCallback ();\r
-\r
- //BuildFvHobs (PcdBfvBase, PcdBfvSize, NULL);\r
-\r
- LoadDxeCoreFromFv (NULL, 0);\r
-\r
- // DXE Core should always load and never return\r
- ASSERT (FALSE);\r
-}\r
-\r
+++ /dev/null
-#/** @file\r
-#\r
-# Component description file for DxeIpl module\r
-#\r
-# The responsibility of this module is to load the DXE Core from a Firmware Volume. This implementation i used to load a 32-bit DXE Core.\r
-#\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-#**/\r
-\r
-[Defines]\r
- INF_VERSION = 0x00010005\r
- BASE_NAME = TemplateSec\r
- FILE_GUID = 1D6F730F-5A55-4078-869B-E0A18324BDC8\r
- MODULE_TYPE = SEC\r
- VERSION_STRING = 1.0\r
-\r
-\r
-#\r
-# The following information is for reference only and not required by the build tools.\r
-#\r
-# VALID_ARCHITECTURES = IA32 X64 ARM\r
-#\r
-\r
-[Sources.common]\r
- TemplateSec.c\r
-\r
-[Sources.Ia32]\r
-# Ia32/ResetVector.asm | MSFT\r
-# Ia32/ResetVector.S | GCC\r
-\r
-[Sources.X64]\r
-# X64/ResetVector.asm | MSFT\r
-# X64/ResetVector.S | GCC\r
-\r
-[Sources.ARM]\r
-# Arm/ResetVector.asm | RVCT\r
-# Arm/ResetVector.S | GCC\r
-\r
-[Packages]\r
- MdePkg/MdePkg.dec\r
- MdeModulePkg/MdeModulePkg.dec\r
- EmbeddedPkg/EmbeddedPkg.dec\r
-\r
-\r
-[LibraryClasses]\r
- BaseLib\r
- DebugLib\r
- BaseMemoryLib\r
- UefiDecompressLib\r
- PeCoffLib\r
- CacheMaintenanceLib\r
- PrePiLib\r
-\r
-[Pcd]\r
- gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress\r
- gEmbeddedTokenSpaceGuid.PcdEmbeddedFdSize\r
-\r