From 0e5cf40b1f7c9b6d9db69f42e38bb2649606a5fc Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 6 Jan 1998 08:27:05 +0000 Subject: [PATCH] Always include pmap_pinit(), since it is a defined pmap interface function (thought, we might revisit that later). Just call pmap_pinit() in pmap_create(), instead of inlining what pmap_pinit() does. Also, g/c a TAILQ_FIRST() macro that is now defined in --- sys/arch/sun3/sun3/pmap.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/arch/sun3/sun3/pmap.c b/sys/arch/sun3/sun3/pmap.c index f2d283a66fe6..1ef72424ce9f 100644 --- a/sys/arch/sun3/sun3/pmap.c +++ b/sys/arch/sun3/sun3/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.95 1998/01/02 20:37:31 thorpej Exp $ */ +/* $NetBSD: pmap.c,v 1.96 1998/01/06 08:27:05 thorpej Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -130,8 +130,6 @@ * Local convenience macros */ -#define TAILQ_FIRST(headp) ((headp)->tqh_first) - /* User segments from 0 to KERNBASE */ #define NUSEG (KERNBASE / NBSG) /* The remainder are kernel segments. */ @@ -2007,8 +2005,7 @@ pmap_create(size) return NULL; pmap = (pmap_t) malloc(sizeof(struct pmap), M_VMPMAP, M_WAITOK); - pmap_common_init(pmap); - pmap_user_init(pmap); + pmap_pinit(pmap); return pmap; } @@ -2975,7 +2972,6 @@ pmap_phys_address(x) } #endif -#ifdef __VM_PMAP_HACK /* * Initialize a preallocated and zeroed pmap structure, * such as one in a vmspace structure. @@ -2987,8 +2983,6 @@ pmap_pinit(pmap) pmap_common_init(pmap); pmap_user_init(pmap); } -#endif /* __VM_PMAP_HACK */ - /* * Reduce the permissions on the specified