Revision: 14659
          http://sourceforge.net/p/edk2/code/14659
Author:   czhang46
Date:     2013-09-12 03:27:00 +0000 (Thu, 12 Sep 2013)
Log Message:
-----------
Update BGRT image buffer to be stored in EfiBootSerivesData according to 
ACPI5.0 spec

Signed-off-by: Chao Zhang <[email protected]>
Reviewed-by: Yao Jiewen <[email protected]>

Modified Paths:
--------------
    
trunk/edk2/MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.c

Modified: 
trunk/edk2/MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.c
===================================================================
--- 
trunk/edk2/MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.c
  2013-09-11 08:57:21 UTC (rev 14658)
+++ 
trunk/edk2/MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.c
  2013-09-12 03:27:00 UTC (rev 14659)
@@ -1,7 +1,7 @@
 /** @file
   This module install ACPI Boot Graphics Resource Table (BGRT).
 
-  Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
   which accompanies this distribution.  The full text of the license may be 
found at
@@ -235,9 +235,9 @@
 }
 
 /**
-  Allocate EfiReservedMemoryType below 4G memory address.
+  Allocate EfiBootServicesData below 4G memory address.
 
-  This function allocates EfiReservedMemoryType below 4G memory address.
+  This function allocates EfiBootServicesData below 4G memory address.
 
   @param[in]  Size   Size of memory to allocate.
 
@@ -245,7 +245,7 @@
 
 **/
 VOID *
-BgrtAllocateReservedMemoryBelow4G (
+BgrtAllocateBsDataMemoryBelow4G (
   IN UINTN       Size
   )
 {
@@ -259,7 +259,7 @@
 
   Status = gBS->AllocatePages (
                   AllocateMaxAddress,
-                  EfiReservedMemoryType,
+                  EfiBootServicesData,
                   Pages,
                   &Address
                   );
@@ -361,9 +361,12 @@
     if (mLogoHeight > (((UINT32) ~0) - sizeof (BMP_IMAGE_HEADER)) / 
(mLogoWidth * 3 + PaddingSize)) {
       return EFI_UNSUPPORTED;
     }
-    
+
+    //
+    // The image should be stored in EfiBootServicesData, allowing the system 
to reclaim the memory
+    //
     BmpSize = (mLogoWidth * 3 + PaddingSize) * mLogoHeight + sizeof 
(BMP_IMAGE_HEADER);
-    ImageBuffer = BgrtAllocateReservedMemoryBelow4G (BmpSize);
+    ImageBuffer = BgrtAllocateBsDataMemoryBelow4G (BmpSize);
     if (ImageBuffer == NULL) {
       return EFI_OUT_OF_RESOURCES;
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to