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 #include "opt_xen.h" so we can tell if we'r...



details:   https://anonhg.NetBSD.org/src/rev/2e0629627d2b
branches:  trunk
changeset: 466623:2e0629627d2b
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Dec 28 00:38:08 2019 +0000

description:
#include "opt_xen.h" so we can tell if we're in a XEN kernel.  We need
to know this in order to set module_machine correctly, which in turn is
needed to set the module_base path from which modules are loaded and
which provides the value of sysctl(8) variable kern.module.path

Thanks to jnemeth@ for pointing out the problem.

diffstat:

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

diffs (25 lines):

diff -r ff9145b6026d -r 2e0629627d2b sys/arch/x86/x86/x86_machdep.c
--- a/sys/arch/x86/x86/x86_machdep.c    Sat Dec 28 00:22:08 2019 +0000
+++ b/sys/arch/x86/x86/x86_machdep.c    Sat Dec 28 00:38:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_machdep.c,v 1.133 2019/12/03 15:20:59 riastradh Exp $      */
+/*     $NetBSD: x86_machdep.c,v 1.134 2019/12/28 00:38:08 pgoyette Exp $       */
 
 /*-
  * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@@ -31,13 +31,14 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.133 2019/12/03 15:20:59 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.134 2019/12/28 00:38:08 pgoyette Exp $");
 
 #include "opt_modular.h"
 #include "opt_physmem.h"
 #include "opt_splash.h"
 #include "opt_kaslr.h"
 #include "opt_svs.h"
+#include "opt_xen.h"
 
 #include <sys/types.h>
 #include <sys/param.h>



Home | Main Index | Thread Index | Old Index