summaryrefslogtreecommitdiff
path: root/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent
diff options
context:
space:
mode:
authorMichael Kinney <michael.d.kinney@intel.com>2015-10-30 17:53:53 +0000
committermdkinney <mdkinney@Edk2>2015-10-30 17:53:53 +0000
commitdf60fb4cc2ca896fcea9e37b06c276d569f1a6b8 (patch)
tree9eac7dc9c1cb0743209adcdf7c194dca597c9c59 /SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent
parent14e4ca25c6199fa29bda7066f31d919197840664 (diff)
downloadedk2-df60fb4cc2ca896fcea9e37b06c276d569f1a6b8.zip
edk2-df60fb4cc2ca896fcea9e37b06c276d569f1a6b8.tar.gz
edk2-df60fb4cc2ca896fcea9e37b06c276d569f1a6b8.tar.bz2
SourceLevelDebugPkg: DebugAgent: Set Local APIC SoftwareEnable
Update DebugAgent to make sure the Local APIC SoftwareEnable bit is set before using the Local APIC Timer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18712 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent')
-rw-r--r--SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c b/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
index 3a759f9..32b1ae6 100644
--- a/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
+++ b/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
@@ -280,6 +280,7 @@ InitializeDebugAgent (
//
// Check if CPU APIC Timer is working, otherwise initialize it.
//
+ InitializeLocalApicSoftwareEnable (TRUE);
GetApicTimerState (NULL, &PeriodicMode, NULL);
TimerCycle = GetApicTimerInitCount ();
if (!PeriodicMode || TimerCycle == 0) {