Fix DxeCore Dispatch Issue that DXE drivers may not be dispatched if they depend on the protocols produced by SMM driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10491 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
		| @@ -544,6 +544,15 @@ CoreDispatcher ( | |||||||
|       ReturnStatus = EFI_SUCCESS; |       ReturnStatus = EFI_SUCCESS; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // | ||||||
|  |     // Now DXE Dispatcher finished one round of dispatch, signal an event group | ||||||
|  |     // so that SMM Dispatcher get chance to dispatch SMM Drivers which depend | ||||||
|  |     // on UEFI protocols | ||||||
|  |     // | ||||||
|  |     if (!EFI_ERROR (ReturnStatus)) { | ||||||
|  |       CoreSignalEvent (DxeDispatchEvent); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     // |     // | ||||||
|     // Search DriverList for items to place on Scheduled Queue |     // Search DriverList for items to place on Scheduled Queue | ||||||
|     // |     // | ||||||
| @@ -565,15 +574,6 @@ CoreDispatcher ( | |||||||
|         } |         } | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     // |  | ||||||
|     // Now DXE Dispatcher finished one round of dispatch, signal an event group |  | ||||||
|     // so that SMM Dispatcher get chance to dispatch SMM Drivers which depend |  | ||||||
|     // on UEFI protocols |  | ||||||
|     // |  | ||||||
|     if (!EFI_ERROR (ReturnStatus)) { |  | ||||||
|       CoreSignalEvent (DxeDispatchEvent); |  | ||||||
|     } |  | ||||||
|   } while (ReadyToRun); |   } while (ReadyToRun); | ||||||
|  |  | ||||||
|   // |   // | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user