Revision: 14837
          http://sourceforge.net/p/edk2/code/14837
Author:   jljusten
Date:     2013-11-12 18:34:36 +0000 (Tue, 12 Nov 2013)
Log Message:
-----------
OvmfPkg/AcpiPlatformDxe/Qemu: Decrease upper limit for PCI window 32

In a later patch we will want to mark the flash memory as a
runtime services data memory range. This will allow a new runtime
services firmware block driver to read & write flash memory when
the OS has set up virtual memory protection.

Since this memory range will appear as runtime services data, we
need to adjust the limit when scanning for PCI window 32 down to
just below the flash device. If we don't adjust the limit, then
the algorithm in PopulateFwData will fail because it will see a
EfiGcdMemoryTypeSystemMemory memory range just below 4GB.

v2:
 * This patch replaces the v1 patch:
   "OvmfPkg/AcpiPlatformDxe/Qemu: Allow high runtime memory regions"

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>

Modified Paths:
--------------
    trunk/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
    trunk/edk2/OvmfPkg/AcpiPlatformDxe/Qemu.c

Modified: trunk/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
===================================================================
--- trunk/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf      2013-11-12 
18:34:28 UTC (rev 14836)
+++ trunk/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf      2013-11-12 
18:34:36 UTC (rev 14837)
@@ -62,6 +62,7 @@
   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiTableStorageFile
   gUefiCpuPkgTokenSpaceGuid.PcdCpuLocalApicBaseAddress
   gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel
+  gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress
 
 [Depex]
   gEfiAcpiTableProtocolGuid

Modified: trunk/edk2/OvmfPkg/AcpiPlatformDxe/Qemu.c
===================================================================
--- trunk/edk2/OvmfPkg/AcpiPlatformDxe/Qemu.c   2013-11-12 18:34:28 UTC (rev 
14836)
+++ trunk/edk2/OvmfPkg/AcpiPlatformDxe/Qemu.c   2013-11-12 18:34:36 UTC (rev 
14837)
@@ -250,7 +250,7 @@
       Desc = &AllDesc[CurDesc];
       ExclTop = Desc->BaseAddress + Desc->Length;
 
-      if (ExclTop <= BASE_4GB) {
+      if (ExclTop <= (UINT64) PcdGet32 (PcdOvmfFdBaseAddress)) {
         switch (Desc->GcdMemoryType) {
           case EfiGcdMemoryTypeNonExistent:
             break;

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


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to