summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2002-02-27 20:51:01 +0000
committermiod <miod@openbsd.org>2002-02-27 20:51:01 +0000
commitb34bef586b7a30f348f760085e9f6d28c63db1b5 (patch)
tree0be4284cde853dc584b1b01e837bc2b25ae7392a
parentANSI decls. okay millert@ (diff)
downloadwireguard-openbsd-b34bef586b7a30f348f760085e9f6d28c63db1b5.tar.xz
wireguard-openbsd-b34bef586b7a30f348f760085e9f6d28c63db1b5.zip
Better values for invalid pte initialization.
-rw-r--r--sys/arch/m68k/m68k/pmap_bootstrap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/m68k/m68k/pmap_bootstrap.c b/sys/arch/m68k/m68k/pmap_bootstrap.c
index 709a6eb7a8d..cf1c51edd46 100644
--- a/sys/arch/m68k/m68k/pmap_bootstrap.c
+++ b/sys/arch/m68k/m68k/pmap_bootstrap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_bootstrap.c,v 1.1 2002/02/23 04:58:28 miod Exp $ */
+/* $OpenBSD: pmap_bootstrap.c,v 1.2 2002/02/27 20:51:01 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -284,7 +284,7 @@ pmap_bootstrap(nextpa, firstpa)
*/
epte = &(PA2VA(kptmpa, u_int *))[NPTEPG-1];
while (pte < epte) {
- *pte++ = PG_NV | PG_U;
+ *pte++ = PG_NV;
}
/*
* Initialize the last to point to the page
@@ -346,7 +346,7 @@ pmap_bootstrap(nextpa, firstpa)
pte = PA2VA(kptpa, u_int *);
epte = &pte[nptpages * NPTEPG];
while (pte < epte)
- *pte++ = PG_NV | PG_U;
+ *pte++ = PG_NV;
/*
* Validate PTEs for kernel text (RO). The first page
@@ -435,7 +435,7 @@ pmap_bootstrap(nextpa, firstpa)
pte = PA2VA(p0upa, u_int *);
epte = (u_int *)(PA2VA(p0upa, u_int) + USPACE);
while (pte < epte)
- *pte++ = 0;
+ *pte++ = PG_NV;
/*
* Remember the u-area address so it can be loaded in the
* proc struct p_addr field later.