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 put userconf_bootinfo under option USERCONF...



details:   https://anonhg.NetBSD.org/src/rev/e6bf6d2fb95c
branches:  trunk
changeset: 765428:e6bf6d2fb95c
user:      para <para%NetBSD.org@localhost>
date:      Thu May 26 16:29:13 2011 +0000

description:
put userconf_bootinfo under option USERCONF, to allow kernels without that option

diffstat:

 sys/arch/x86/x86/x86_machdep.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 6761a4428a45 -r e6bf6d2fb95c sys/arch/x86/x86/x86_machdep.c
--- a/sys/arch/x86/x86/x86_machdep.c    Thu May 26 15:34:12 2011 +0000
+++ b/sys/arch/x86/x86/x86_machdep.c    Thu May 26 16:29:13 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_machdep.c,v 1.47 2011/05/26 04:25:28 uebayasi Exp $        */
+/*     $NetBSD: x86_machdep.c,v 1.48 2011/05/26 16:29:13 para Exp $    */
 
 /*-
  * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@@ -31,11 +31,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.47 2011/05/26 04:25:28 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.48 2011/05/26 16:29:13 para Exp $");
 
 #include "opt_modular.h"
 #include "opt_physmem.h"
 #include "opt_splash.h"
+#include "opt_userconf.h"
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -50,7 +51,10 @@
 #include <sys/module.h>
 #include <sys/sysctl.h>
 #include <sys/extent.h>
+
+#if defined(USERCONF)
 #include <sys/userconf.h>
+#endif /* defined(USERCONF) */
 
 #include <x86/cpuvar.h>
 #include <x86/cputypes.h>
@@ -178,6 +182,7 @@
 }
 #endif /* MODULAR */
 
+#if defined(USERCONF)
 void
 userconf_bootinfo(void)
 {
@@ -197,6 +202,7 @@
                userconf_parse(bi->text);
        }
 }
+#endif /* defined USERCONF) */
 
 void
 cpu_need_resched(struct cpu_info *ci, int flags)



Home | Main Index | Thread Index | Old Index