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 Add a missing || defined(XEN) which cause X...



details:   https://anonhg.NetBSD.org/src/rev/9b6ad9d2c543
branches:  trunk
changeset: 803146:9b6ad9d2c543
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Tue Oct 14 06:59:58 2014 +0000

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

diffstat:

 sys/arch/x86/x86/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r beaef3f85f62 -r 9b6ad9d2c543 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Tue Oct 14 03:16:56 2014 +0000
+++ b/sys/arch/x86/x86/pmap.c   Tue Oct 14 06:59:58 2014 +0000
@@ -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_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) */



Home | Main Index | Thread Index | Old Index