Module Name: src Committed By: maxv Date: Fri Dec 16 20:16:50 UTC 2016
Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.238 -r1.239 src/sys/arch/amd64/amd64/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/amd64/amd64/machdep.c diff -u src/sys/arch/amd64/amd64/machdep.c:1.238 src/sys/arch/amd64/amd64/machdep.c:1.239 --- src/sys/arch/amd64/amd64/machdep.c:1.238 Thu Dec 15 12:04:17 2016 +++ src/sys/arch/amd64/amd64/machdep.c Fri Dec 16 20:16:50 2016 @@ -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 @@ init_x86_64(paddr_t first_avail) /* 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.