summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-10-02 19:51:51 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-10-02 19:51:51 +0000
commit3680331149a5afde2fabba6281aff48ecb2b34f4 (patch)
treed64c5e25f4357004c4b2960ad273616fe5fbb8ad /sys/arch
parent9fc2da999ef4d36d8b30648c297ff7282e931bbb (diff)
Accomodate for the buffer cache, mbuf clusters and physio space when
caclulating sysptsize
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/vax/vax/pmap.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c
index c9387839c13..e763d966d63 100644
--- a/sys/arch/vax/vax/pmap.c
+++ b/sys/arch/vax/vax/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.9 1997/09/12 09:30:56 maja Exp $ */
+/* $OpenBSD: pmap.c,v 1.10 1997/10/02 19:51:50 niklas Exp $ */
/* $NetBSD: pmap.c,v 1.37 1997/07/25 21:54:48 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -52,13 +52,13 @@
#include <machine/cpu.h>
#include <machine/scb.h>
+extern int bufcalc __P((void));
static pt_entry_t *pmap_virt2pte __P((pmap_t, u_int));
static pv_entry_t alloc_pv_entry __P((void));
static void free_pv_entry __P((pv_entry_t));
static int remove_pmap_from_mapping __P((pv_entry_t, pmap_t));
-
#define ISTACK_SIZE (4 * NBPG)
#define PTE_TO_PV(pte) (PHYS_TO_PV((pte&PG_FRAME)<<PGSHIFT))
@@ -163,6 +163,12 @@ pmap_bootstrap()
sysptsize += ((USRPTSIZE * 4) / NBPG) * maxproc;
/* Kernel stacks per process */
sysptsize += UPAGES * maxproc;
+ /* Buffer cache */
+ sysptsize += bufcalc() * CLSIZE;
+ /* mbufs */
+ sysptsize += VM_MBUF_SIZE / NBPG;
+ /* physio space */
+ sysptsize += VM_PHYS_SIZE / NBPG;
/*
* Virtual_* and avail_* is used for mapping of system page table.