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