diff options
author | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-10-21 08:45:07 +0000 |
---|---|---|
committer | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-10-21 08:45:07 +0000 |
commit | b17f22f50b67c4c845ac3b70f5a90f82cf688795 (patch) | |
tree | ee6ea2abc87b9c7d656381389c6b778cd363059a /IntelFrameworkModulePkg/Csm/LegacyBiosDxe | |
parent | 9a000b464fe3c03489a68a60dc5f1f9abbe92a12 (diff) | |
download | edk2-b17f22f50b67c4c845ac3b70f5a90f82cf688795.zip edk2-b17f22f50b67c4c845ac3b70f5a90f82cf688795.tar.gz edk2-b17f22f50b67c4c845ac3b70f5a90f82cf688795.tar.bz2 |
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
Diffstat (limited to 'IntelFrameworkModulePkg/Csm/LegacyBiosDxe')
-rw-r--r-- | IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c index 16c873d..3d9a8b9 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
|