Add a missing || defined(XEN) which cause Xen non-DIAGNOSTIC kernels
to panic at boot.
This commit is contained in:
parent
debcdd0290
commit
5266e8ff9b
@ -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, paddr_t *paddrp)
|
||||
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) */
|
||||
|
Loading…
Reference in New Issue
Block a user