From 17371233faae963f3461dc9d825387692a622000 Mon Sep 17 00:00:00 2001 From: fair Date: Wed, 20 May 1998 18:35:49 +0000 Subject: [PATCH] make some preliminary changes so that this compiles for UVM --- sys/arch/sun3/sun3/machdep.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/arch/sun3/sun3/machdep.c b/sys/arch/sun3/sun3/machdep.c index 09560d84be5f..21b2f43ea2af 100644 --- a/sys/arch/sun3/sun3/machdep.c +++ b/sys/arch/sun3/sun3/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.111 1998/03/08 19:09:58 gwr Exp $ */ +/* $NetBSD: machdep.c,v 1.112 1998/05/20 18:35:49 fair Exp $ */ /* * Copyright (c) 1994, 1995 Gordon W. Ross @@ -84,6 +84,10 @@ #include #include +#if defined(UVM) +#include /* XXX: not _extern ... need vm_map_create */ +#endif + #include #include @@ -236,7 +240,9 @@ allocsys(v) if (nswbuf > 256) nswbuf = 256; /* sanity */ } +#if !defined(UVM) valloc(swbuf, struct buf, nswbuf); +#endif valloc(buf, struct buf, nbuf); return v; } @@ -358,7 +364,11 @@ cpu_startup() callout[i-1].c_next = &callout[i]; callout[i-1].c_next = NULL; +#if defined(UVM) + size = ptoa(uvmexp.free); +#else size = ptoa(cnt.v_free_count); +#endif printf("avail mem = %dK (0x%lx)\n", (size >> 10), size); printf("using %d buffers containing %d bytes of memory\n", nbuf, bufpages * CLBYTES);