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. //