From 082d37c1acacd0403f5fb2883c7a0203c86baa10 Mon Sep 17 00:00:00 2001 From: luoqi Date: Fri, 19 Feb 1999 14:25:37 +0000 Subject: Hide access to vmspace:vm_pmap with inline function vmspace_pmap(). This is the preparation step for moving pmap storage out of vmspace proper. Reviewed by: Alan Cox Matthew Dillion --- sys/kern/tty.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/kern/tty.c') diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 592da5d..3b79a98 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)tty.c 8.8 (Berkeley) 1/21/94 - * $Id: tty.c,v 1.112 1999/01/28 17:32:00 dillon Exp $ + * $Id: tty.c,v 1.113 1999/01/30 12:17:36 phk Exp $ */ /*- @@ -2275,12 +2275,7 @@ ttyinfo(tp) ttyprintf(tp, "%d%% %ldk\n", tmp / 100, pick->p_stat == SIDL || pick->p_stat == SZOMB ? 0 : -#ifdef pmap_resident_count - (long)pgtok(pmap_resident_count(&pick->p_vmspace->vm_pmap)) -#else - (long)pgtok(pick->p_vmspace->vm_rssize) -#endif - ); + (long)pgtok(vmspace_resident_count(pick->p_vmspace))); } tp->t_rocount = 0; /* so pending input will be retyped if BS */ } -- cgit v1.1