From: vanjeff Date: Wed, 3 Nov 2010 03:21:29 +0000 (+0000) Subject: swaps the order of timer disable and memory map termination to make sure memory map... X-Git-Tag: edk2-stable201903~15442 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=785b5f5a50d0f03cae1456d9af77ff66f718d536 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 --- 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 @@ -675,6 +675,11 @@ CoreExitBootServices ( { EFI_STATUS Status; + // + // Disable Timer + // + gTimer->SetTimerPeriod (gTimer, 0); + // // Terminate memory services if the MapKey matches // @@ -683,11 +688,6 @@ CoreExitBootServices ( return Status; } - // - // Disable Timer - // - gTimer->SetTimerPeriod (gTimer, 0); - // // Notify other drivers that we are exiting boot services. //