Revision: 14498
          http://sourceforge.net/p/edk2/code/14498
Author:   niruiyu
Date:     2013-07-22 07:35:51 +0000 (Mon, 22 Jul 2013)
Log Message:
-----------
Fix PciHostBridge driver to return success for EfiPciHostBridgeEndEnumeration 
to fix OVMF boot no display issue.

Signed-off-by: Ruiyu Ni <[email protected]>
Reviewed-by: Feng Tian <[email protected]>

Modified Paths:
--------------
    trunk/edk2/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c

Modified: trunk/edk2/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c
===================================================================
--- trunk/edk2/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c  2013-07-22 
06:41:52 UTC (rev 14497)
+++ trunk/edk2/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c  2013-07-22 
07:35:51 UTC (rev 14498)
@@ -1,7 +1,7 @@
 /** @file
   Provides the basic interfaces to abstract a PCI Host Bridge Resource 
Allocation
 
-Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2008 - 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
@@ -281,12 +281,14 @@
     }  
     break;
 
+  case EfiPciHostBridgeEndEnumeration:
+    break;
+
   case EfiPciHostBridgeBeginBusAllocation:
     //
     // No specific action is required here, can perform any chipset specific 
programing
     //
     HostBridgeInstance->CanRestarted = FALSE;
-    return EFI_SUCCESS;
     break;
 
   case EfiPciHostBridgeEndBusAllocation:
@@ -294,7 +296,6 @@
     // No specific action is required here, can perform any chipset specific 
programing
     //
     //HostBridgeInstance->CanRestarted = FALSE;
-    return EFI_SUCCESS;
     break;
 
   case EfiPciHostBridgeBeginResourceAllocation:
@@ -302,7 +303,6 @@
     // No specific action is required here, can perform any chipset specific 
programing
     //
     //HostBridgeInstance->CanRestarted = FALSE;
-    return EFI_SUCCESS;
     break;
 
   case EfiPciHostBridgeAllocateResources:
@@ -472,7 +472,6 @@
     HostBridgeInstance->ResourceSubmited = FALSE;
     HostBridgeInstance->CanRestarted     = TRUE;      
     return ReturnStatus;
-    break;
 
   case EfiPciHostBridgeEndResourceAllocation:
     HostBridgeInstance->CanRestarted = FALSE;
@@ -480,7 +479,7 @@
 
   default:
     return EFI_INVALID_PARAMETER;
-  }; // end switch
+  }
   
   return EFI_SUCCESS;  
 }

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


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to