]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg: Add ASSERT to handle local APIC not config properly
authorHao Wu <hao.a.wu@intel.com>
Fri, 9 Oct 2015 07:03:24 +0000 (07:03 +0000)
committerhwu1225 <hwu1225@Edk2>
Fri, 9 Oct 2015 07:03:24 +0000 (07:03 +0000)
commit53fa8748fdba2e80e9266e93568d7387ee98ad9f
tree57496d66f9aa2468f8362dcf92f69d63aa40ffdd
parent9ad48dd148e167261161a606e120a3132048e1e9
MdePkg: Add ASSERT to handle local APIC not config properly

When the local APIC is not configurated properly, function
InternalX86GetInitTimerCount() may return zero, which will lead to a
divide by zero exception in SecPeiDxeTimerLibCpu.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-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@18593 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Library/SecPeiDxeTimerLibCpu/X86TimerLib.c