svn commit: r267575 - head/sys/x86/x86

Konstantin Belousov kib at FreeBSD.org
Tue Jun 17 09:33:23 UTC 2014


Author: kib
Date: Tue Jun 17 09:33:22 2014
New Revision: 267575
URL: http://svnweb.freebsd.org/changeset/base/267575

Log:
  Do not reference native_lapic_ipi_*() functions in the UP build.
  The functions' definitions are protected by #ifdef SMP.
  Keeping apic_ops.ipi_*() methods NULL would allow to catch the use
  on UP machines.
  
  Reviewed by:	royger
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/x86/x86/local_apic.c

Modified: head/sys/x86/x86/local_apic.c
==============================================================================
--- head/sys/x86/x86/local_apic.c	Tue Jun 17 09:02:10 2014	(r267574)
+++ head/sys/x86/x86/local_apic.c	Tue Jun 17 09:33:22 2014	(r267575)
@@ -230,9 +230,11 @@ struct apic_ops apic_ops = {
 	.disable_pmc		= native_lapic_disable_pmc,
 	.reenable_pmc		= native_lapic_reenable_pmc,
 	.enable_cmc		= native_lapic_enable_cmc,
+#ifdef SMP
 	.ipi_raw		= native_lapic_ipi_raw,
 	.ipi_vectored		= native_lapic_ipi_vectored,
 	.ipi_wait		= native_lapic_ipi_wait,
+#endif
 	.set_lvt_mask		= native_lapic_set_lvt_mask,
 	.set_lvt_mode		= native_lapic_set_lvt_mode,
 	.set_lvt_polarity	= native_lapic_set_lvt_polarity,


More information about the svn-src-head mailing list