]> git.proxmox.com Git - mirror_edk2.git/commitdiff
roll back change
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Dec 2007 00:18:28 +0000 (00:18 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Dec 2007 00:18:28 +0000 (00:18 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4373 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c

index 67dd803861d7ba8e73f5b04e566283ca0fd83569..1a98e97e9a6738d1b9f013bdab597103f9c635e3 100644 (file)
@@ -412,14 +412,11 @@ Returns:
   UINTN                                                 Instance;\r
   UINT8                                                 *CopyBuffer;\r
   UINTN                                                 SectionSize;\r
-  EFI_FIRMWARE_VOLUME_HEADER                            *FvHeader;\r
-  UINT32                                                FvAlignment;  \r
-  \r
   \r
+\r
   OldTpl = CoreRaiseTpl (TPL_NOTIFY);\r
   Instance = SectionInstance + 1;\r
-  FvHeader = NULL;\r
-  FvAlignment = 0;\r
+  \r
   //\r
   // Locate target stream\r
   //\r
@@ -472,19 +469,8 @@ Returns:
   } else {\r
     //\r
     // Callee allocated buffer.  Allocate buffer and return size.\r
-    // For FvImage, the buffer is allocated at its required alignment.\r
     //\r
-    if (*SectionType == EFI_SECTION_FIRMWARE_VOLUME_IMAGE) {\r
-      FvHeader = (EFI_FIRMWARE_VOLUME_HEADER *) CopyBuffer;\r
-      FvAlignment = 1 << ((FvHeader->Attributes & EFI_FVB2_ALIGNMENT) >> 16);\r
-      //\r
-      // FvAlignment must be more than 8 bytes required by FvHeader structure.\r
-      // \r
-      if (FvAlignment < 8) {\r
-        FvAlignment = 8;\r
-      }\r
-    }\r
-    *Buffer = AllocateAlignedPool ((UINTN) CopySize, (UINTN) FvAlignment);\r
+    *Buffer = CoreAllocateBootServicesPool (CopySize);\r
     if (*Buffer == NULL) {\r
       Status = EFI_OUT_OF_RESOURCES;\r
       goto GetSection_Done;\r