Revision: 14623
          http://sourceforge.net/p/edk2/code/14623
Author:   lgao4
Date:     2013-09-04 02:20:25 +0000 (Wed, 04 Sep 2013)
Log Message:
-----------
Fixed the issue in PeiCore on Load Module At Fixed Address logic

Signed-off-by: Liming Gao <[email protected]>
Reviewed-by: Star Zeng <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
    trunk/edk2/MdeModulePkg/MdeModulePkg.dec

Modified: trunk/edk2/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
===================================================================
--- trunk/edk2/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c    2013-09-03 
15:47:01 UTC (rev 14622)
+++ trunk/edk2/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c    2013-09-04 
02:20:25 UTC (rev 14623)
@@ -1,7 +1,7 @@
 /** @file
   EFI PEI Core dispatch services
   
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 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
@@ -305,7 +305,7 @@
       //
       // If range described in this hob is not system memory or heigher than 
MAX_ADDRESS, ignored.
       //
-      if (ResourceHob->ResourceType != EFI_RESOURCE_SYSTEM_MEMORY &&
+      if (ResourceHob->ResourceType != EFI_RESOURCE_SYSTEM_MEMORY ||
           ResourceHob->PhysicalStart + ResourceHob->ResourceLength > 
MAX_ADDRESS)   {
         continue;
       }   
@@ -375,7 +375,7 @@
           //
           // If range described in this hob is not system memory or heigher 
than MAX_ADDRESS, ignored.
           //
-          if (NextResourceHob->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY && 
NextResourceHob->PhysicalStart + NextResourceHob->ResourceLength > MAX_ADDRESS) 
{
+          if (NextResourceHob->ResourceType != EFI_RESOURCE_SYSTEM_MEMORY || 
NextResourceHob->PhysicalStart + NextResourceHob->ResourceLength > MAX_ADDRESS) 
{
             continue;
           }
           //

Modified: trunk/edk2/MdeModulePkg/MdeModulePkg.dec
===================================================================
--- trunk/edk2/MdeModulePkg/MdeModulePkg.dec    2013-09-03 15:47:01 UTC (rev 
14622)
+++ trunk/edk2/MdeModulePkg/MdeModulePkg.dec    2013-09-04 02:20:25 UTC (rev 
14623)
@@ -574,9 +574,9 @@
   gEfiMdeModulePkgTokenSpaceGuid.PcdCapsuleCoalesceFile|{ 0xA6, 0xE4, 0xFD, 
0xF7, 0x4C, 0x29, 0x3c, 0x49, 0xB5, 0x0F, 0x97, 0x34, 0x55, 0x3B, 0xB7, 0x57 
}|VOID*|0x30000017
 
   ## Flag of enabling/disabling the feature of Loading Module at Fixed Address 
-  #  -1: Enable the feature as fixed offset to TOLM
-  #   0: Disable the feature.
-  #  Positive Value:  Enable the feature as fixed absolute address, and the 
value is the top memory address 
+  #  0xFFFFFFFFFFFFFFFF: Enable the feature as fixed offset to TOLM
+  #  0:                  Disable the feature
+  #  Other Value:        Enable the feature as fixed absolute address, and the 
value is the top memory address 
   
gEfiMdeModulePkgTokenSpaceGuid.PcdLoadModuleAtFixAddressEnable|0|UINT64|0x30001015
 
   ## Smbios version

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


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to