Module Name:    src
Committed By:   bouyer
Date:           Tue Oct 14 06:59:59 UTC 2014

Modified Files:
        src/sys/arch/x86/x86: pmap.c

Log Message:
Add a missing || defined(XEN) which cause Xen non-DIAGNOSTIC kernels
to panic at boot.


To generate a diff of this commit:
cvs rdiff -u -r1.183 -r1.184 src/sys/arch/x86/x86/pmap.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/x86/x86/pmap.c
diff -u src/sys/arch/x86/x86/pmap.c:1.183 src/sys/arch/x86/x86/pmap.c:1.184
--- src/sys/arch/x86/x86/pmap.c:1.183	Sat Jun 14 02:54:47 2014
+++ src/sys/arch/x86/x86/pmap.c	Tue Oct 14 06:59:58 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.183 2014/06/14 02:54:47 pgoyette Exp $	*/
+/*	$NetBSD: pmap.c,v 1.184 2014/10/14 06:59:58 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.183 2014/06/14 02:54:47 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.184 2014/10/14 06:59:58 bouyer Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -4126,7 +4126,7 @@ pmap_get_physpage(vaddr_t va, int level,
 		pmap_pte_flush();
 		pmap_update_pg((vaddr_t)early_zerop);
 		memset(early_zerop, 0, PAGE_SIZE);
-#if defined(DIAGNOSTIC)
+#if defined(DIAGNOSTIC) || defined(XEN)
 		pmap_pte_set(early_zero_pte, 0);
 		pmap_pte_flush();
 #endif /* defined(DIAGNOSTIC) */

Reply via email to