Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 This can actually be enabled in Xen; my...



details:   https://anonhg.NetBSD.org/src/rev/3a3dcea491e3
branches:  trunk
changeset: 819769:3a3dcea491e3
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Dec 16 20:16:50 2016 +0000

description:
This can actually be enabled in Xen; my rev1.235 fixed the issue. Before
that kern_end was pointing to DUMMY PAGE, which was already kentered
earlier in xen_locore, causing pmap to panic.

This change adds support for kernel modules in Xen.

diffstat:

 sys/arch/amd64/amd64/machdep.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r cd2fd4cec5a8 -r 3a3dcea491e3 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Fri Dec 16 20:12:11 2016 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Fri Dec 16 20:16:50 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.238 2016/12/15 12:04:17 kamil Exp $      */
+/*     $NetBSD: machdep.c,v 1.239 2016/12/16 20:16:50 maxv Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.238 2016/12/15 12:04:17 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.239 2016/12/16 20:16:50 maxv Exp $");
 
 /* #define XENDEBUG_LOW  */
 
@@ -1616,11 +1616,9 @@
        /* End of the virtual space we have created so far. */
        kern_end = (vaddr_t)atdevbase + IOM_SIZE;
 
-#ifndef XEN
        /* The area for the module map. */
        module_start = kern_end;
        module_end = KERNBASE + NKL2_KIMG_ENTRIES * NBPD_L2;
-#endif
 
        /*
         * Call pmap initialization to make new kernel address space.



Home | Main Index | Thread Index | Old Index