Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 With recent introduction of conditionals fo...



details:   https://anonhg.NetBSD.org/src/rev/b92bfb0333b8
branches:  trunk
changeset: 783273:b92bfb0333b8
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Dec 12 22:43:35 2012 +0000

description:
With recent introduction of conditionals for the various MP options, we
broke the build for x86 systems that have MULTIPROCESSOR but which do not
include MPBIOS.  So let's try to untangle things just a bit.  Presented
on current-users (and referenced on source-changes-d) without any comment.

XXX We really should find a better method to select kernel options; #ifdef
spaghetti is rather sub-optimal.

diffstat:

 sys/arch/x86/x86/cpu.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 78b534f44b65 -r b92bfb0333b8 sys/arch/x86/x86/cpu.c
--- a/sys/arch/x86/x86/cpu.c    Wed Dec 12 19:47:44 2012 +0000
+++ b/sys/arch/x86/x86/cpu.c    Wed Dec 12 22:43:35 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.101 2012/12/08 12:36:31 kiyohara Exp $       */
+/*     $NetBSD: cpu.c,v 1.102 2012/12/12 22:43:35 pgoyette Exp $       */
 
 /*-
  * Copyright (c) 2000-2012 NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.101 2012/12/08 12:36:31 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.102 2012/12/12 22:43:35 pgoyette Exp $");
 
 #include "opt_ddb.h"
 #include "opt_mpbios.h"                /* for MPDEBUG */
@@ -89,13 +89,16 @@
 
 #include <uvm/uvm.h>
 
+#include "acpica.h"            /* for NACPICA, for mp_verbose */
+
 #include <machine/cpufunc.h>
 #include <machine/cpuvar.h>
 #include <machine/pmap.h>
 #include <machine/vmparam.h>
-#if MPBIOS > 0
+#if defined(MULTIPROCESSOR)
 #include <machine/mpbiosvar.h>
 #endif
+#include <machine/mpconfig.h>          /* for mp_verbose */
 #include <machine/pcb.h>
 #include <machine/specialreg.h>
 #include <machine/segments.h>



Home | Main Index | Thread Index | Old Index