From 37573927338afb96c8969e5ce1ea5db4d1c77a74 Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Thu, 18 Aug 2011 11:17:09 +0000 Subject: ArmPlatformPkg/PrePi: Removed harcoded HobList pointer calculation to use PrePeiHobListPointerLib function git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12166 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/PrePi/PrePi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ArmPlatformPkg/PrePi') diff --git a/ArmPlatformPkg/PrePi/PrePi.c b/ArmPlatformPkg/PrePi/PrePi.c index 860befdc2b..7fe6fc36fa 100755 --- a/ArmPlatformPkg/PrePi/PrePi.c +++ b/ArmPlatformPkg/PrePi/PrePi.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -52,7 +53,7 @@ PrePiMain ( IN UINT64 StartTimeStamp ) { - EFI_HOB_HANDOFF_INFO_TABLE** PrePiHobBase; + EFI_HOB_HANDOFF_INFO_TABLE* HobList; EFI_STATUS Status; CHAR8 Buffer[100]; UINTN CharCount; @@ -83,15 +84,14 @@ PrePiMain ( // Check the PcdCPUCoresNonSecStackBase match with the calculated StackBase ASSERT (StacksBase == PcdGet32 (PcdCPUCoresNonSecStackBase)); - PrePiHobBase = (EFI_HOB_HANDOFF_INFO_TABLE**)(PcdGet32 (PcdCPUCoresNonSecStackBase) + (PcdGet32 (PcdCPUCoresNonSecStackSize) / 2) - PcdGet32 (PcdHobListPtrGlobalOffset)); - // Declare the PI/UEFI memory region - *PrePiHobBase = HobConstructor ( + HobList = HobConstructor ( (VOID*)UefiMemoryBase, FixedPcdGet32 (PcdSystemMemoryUefiRegionSize), (VOID*)UefiMemoryBase, (VOID*)StacksBase // The top of the UEFI Memory is reserved for the stacks ); + PrePeiSetHobList (HobList); // Initialize MMU and Memory HOBs (Resource Descriptor HOBs) Status = MemoryPeim (UefiMemoryBase, FixedPcdGet32 (PcdSystemMemoryUefiRegionSize)); -- cgit v1.2.3