]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c
CSM should firstly set timer to enable state at first, then RestoreTpl is called.
[mirror_edk2.git] / IntelFrameworkModulePkg / Csm / LegacyBiosDxe / Thunk.c
index 16c873d8f5c40bcb42ec9b107d65fbe1388be7c3..3d9a8b96490ca54794954ed31f4f51c4dc0d10a9 100644 (file)
@@ -315,14 +315,14 @@ InternalLegacyBiosFarCall (
   mThunkContext.RealModeState = NULL;\r
 \r
   //\r
-  // End critical section\r
+  // Enable and restore rate of DXE Timer\r
   //\r
-  gBS->RestoreTPL (OriginalTpl);\r
+  Private->Timer->SetTimerPeriod (Private->Timer, TimerPeriod);\r
 \r
   //\r
-  // Enable and restore rate of DXE Timer\r
+  // End critical section\r
   //\r
-  Private->Timer->SetTimerPeriod (Private->Timer, TimerPeriod);\r
+  gBS->RestoreTPL (OriginalTpl);\r
   \r
   //\r
   // Restore interrupt of debug timer\r