]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lapic: skip setting intrcnt if lapic is not present
authorRoger Pau Monné <royger@FreeBSD.org>
Thu, 13 Sep 2018 07:13:13 +0000 (07:13 +0000)
committerRoger Pau Monné <royger@FreeBSD.org>
Thu, 13 Sep 2018 07:13:13 +0000 (07:13 +0000)
commitd7627401ecaa772ca6034eb64c8810369448e579
tree2953957f987cf582f41773f814edce81dba34e95
parent4edbde911bc4e3af277987a9305f296be7789db5
lapic: skip setting intrcnt if lapic is not present

Instead of panicking. Legacy PVH mode doesn't provide a lapic, and
since native_lapic_intrcnt is called unconditionally this would cause
the assert to trigger. Change the assert into a continue in order to
take into account the possibility of systems without a lapic.

Reviewed by: jhb
Approved by: re (gjb)
Sponsored by: Citrix Systems R&D
Differential revision: https://reviews.freebsd.org/D17015
sys/x86/x86/local_apic.c