svn commit: r234105 - in head/sys: amd64/amd64 i386/i386

Marius Strobl marius at FreeBSD.org
Tue Apr 10 16:08:47 UTC 2012


Author: marius
Date: Tue Apr 10 16:08:46 2012
New Revision: 234105
URL: http://svn.freebsd.org/changeset/base/234105

Log:
  Fix !SMP build after r234074.
  
  Reviewed by:	attilio, jhb

Modified:
  head/sys/amd64/amd64/machdep.c
  head/sys/i386/i386/machdep.c

Modified: head/sys/amd64/amd64/machdep.c
==============================================================================
--- head/sys/amd64/amd64/machdep.c	Tue Apr 10 16:05:52 2012	(r234104)
+++ head/sys/amd64/amd64/machdep.c	Tue Apr 10 16:08:46 2012	(r234105)
@@ -296,10 +296,12 @@ cpu_startup(dummy)
 
 	cpu_setregs();
 
+#ifdef SMP
 	/*
 	 * Add BSP as an interrupt target.
 	 */
 	intr_add_cpu(0);
+#endif
 }
 
 /*

Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c	Tue Apr 10 16:05:52 2012	(r234104)
+++ head/sys/i386/i386/machdep.c	Tue Apr 10 16:08:46 2012	(r234105)
@@ -337,10 +337,12 @@ cpu_startup(dummy)
 	cpu_setregs();
 #endif
 
+#ifdef SMP
 	/*
 	 * Add BSP as an interrupt target.
 	 */
 	intr_add_cpu(0);
+#endif
 }
 
 /*


More information about the svn-src-head mailing list