]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg: Add ASSERT to handle local APIC not config properly
authorHao Wu <hao.a.wu@intel.com>
Fri, 9 Oct 2015 07:04:00 +0000 (07:04 +0000)
committerhwu1225 <hwu1225@Edk2>
Fri, 9 Oct 2015 07:04:00 +0000 (07:04 +0000)
commitf17e2f8c9e1a34c3707f93ca373a79f14927f7b1
tree6293ed9a25c49368e55ef901bb182de5ed7da93f
parent53fa8748fdba2e80e9266e93568d7387ee98ad9f
UefiCpuPkg: Add ASSERT to handle local APIC not config properly

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

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@18594 6f19259b-4bc3-4df7-8a09-765794883524
UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/X86TimerLib.c