]> git.proxmox.com Git - mirror_edk2.git/commit - SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
SourceLevelDebugPkg: Avoid to re-init IDT table again at SMI entry
authorJeff Fan <jeff.fan@intel.com>
Tue, 29 Nov 2016 06:51:18 +0000 (14:51 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 30 Nov 2016 06:34:45 +0000 (14:34 +0800)
commit6fee83fbcab75ee676699df3b3cf7f25fcbb3d26
treebdb36bb5d78cfb595e0033fe10af9800f681549b
parente27ccaba9050b11a10d82fd9a0dfdd87015bd710
SourceLevelDebugPkg: Avoid to re-init IDT table again at SMI entry

Current SmmDebugAgentLib will initialize IDT table to support source debugging
at each time SMI entry on SMM BSP. Actually, we only need to initialize IDT
table at first time SMI entry.

Add one flag to avoid re-initializing IDT table.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c