summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-21 08:45:07 +0000
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-21 08:45:07 +0000
commitb17f22f50b67c4c845ac3b70f5a90f82cf688795 (patch)
treeee6ea2abc87b9c7d656381389c6b778cd363059a
parent9a000b464fe3c03489a68a60dc5f1f9abbe92a12 (diff)
downloadedk2-platforms-b17f22f50b67c4c845ac3b70f5a90f82cf688795.tar.xz
CSM should firstly set timer to enable state at first, then RestoreTpl is called.
Signed-off-by: li-elvin Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12555 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c
index 16c873d8f5..3d9a8b9649 100644
--- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c
+++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c
@@ -315,14 +315,14 @@ InternalLegacyBiosFarCall (
mThunkContext.RealModeState = NULL;
//
- // End critical section
+ // Enable and restore rate of DXE Timer
//
- gBS->RestoreTPL (OriginalTpl);
+ Private->Timer->SetTimerPeriod (Private->Timer, TimerPeriod);
//
- // Enable and restore rate of DXE Timer
+ // End critical section
//
- Private->Timer->SetTimerPeriod (Private->Timer, TimerPeriod);
+ gBS->RestoreTPL (OriginalTpl);
//
// Restore interrupt of debug timer