summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-07-01 19:45:27 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-07-01 19:45:27 +0000
commit5ffe820877cc1d6f77a9558863f6a6b6ccda391f (patch)
tree10b29683f3d3281f4e3f30c21f88858795ae8e04
parenta4c43db987538061ee04a4645a76e0f1cd65c2a0 (diff)
Replace magic number in USRPTSIZE with the proper computation based upon
various userland size limits.
-rw-r--r--sys/arch/vax/include/pmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/include/pmap.h b/sys/arch/vax/include/pmap.h
index 068696e7757..a8710fe4f24 100644
--- a/sys/arch/vax/include/pmap.h
+++ b/sys/arch/vax/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.34 2013/03/26 04:58:05 deraadt Exp $ */
+/* $OpenBSD: pmap.h,v 1.35 2013/07/01 19:45:26 miod Exp $ */
/* $NetBSD: pmap.h,v 1.37 1999/08/01 13:48:07 ragge Exp $ */
/*
@@ -54,7 +54,7 @@
*/
#define LTOHPS (PAGE_SHIFT - VAX_PGSHIFT)
#define LTOHPN (1 << LTOHPS)
-#define USRPTSIZE ((MAXTSIZ + 40*1024*1024 + MAXSSIZ) / VAX_NBPG)
+#define USRPTSIZE ((MAXTSIZ + MAXDSIZ + BRKSIZ + MAXSSIZ) / VAX_NBPG)
#define NPTEPGS (USRPTSIZE / (sizeof(pt_entry_t) * LTOHPN))
/*