diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-03 03:21:29 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-03 03:21:29 +0000 |
commit | 785b5f5a50d0f03cae1456d9af77ff66f718d536 (patch) | |
tree | c0eb97d071047cfa792a660df1b6a3d978867941 | |
parent | 07d9dc83f469161153de8bfbdd1eb5504dd6f653 (diff) | |
download | edk2-platforms-785b5f5a50d0f03cae1456d9af77ff66f718d536.tar.xz |
swaps the order of timer disable and memory map termination to make sure memory map unchanged.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10999 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c index 3dfabd87e5..3d3c3ef6ff 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c @@ -676,6 +676,11 @@ CoreExitBootServices ( EFI_STATUS Status;
//
+ // Disable Timer
+ //
+ gTimer->SetTimerPeriod (gTimer, 0);
+
+ //
// Terminate memory services if the MapKey matches
//
Status = CoreTerminateMemoryMap (MapKey);
@@ -684,11 +689,6 @@ CoreExitBootServices ( }
//
- // Disable Timer
- //
- gTimer->SetTimerPeriod (gTimer, 0);
-
- //
// Notify other drivers that we are exiting boot services.
//
CoreNotifySignalList (&gEfiEventExitBootServicesGuid);
|