From ace977b163a487262367b29bf0a11c9438cd3480 Mon Sep 17 00:00:00 2001 From: Michael Knudsen Date: Sat, 14 Jun 2008 10:55:22 +0000 Subject: A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO) conversions that should shave a few bytes off the kernel. ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer FOO|BAR''; thanks for looking. --- sys/arch/mips64/mips64/pmap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/arch/mips64') diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c index 38553ea56f6..598f57f33cd 100644 --- a/sys/arch/mips64/mips64/pmap.c +++ b/sys/arch/mips64/mips64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.33 2008/04/07 22:30:48 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.34 2008/06/14 10:55:20 mk Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -278,9 +278,8 @@ extern struct user *proc0paddr; DPRINTF(PDB_FOLLOW|PDB_CREATE, ("pmap_create()\n")); s = splvm(); - pmap = pool_get(&pmap_pmap_pool, PR_WAITOK); + pmap = pool_get(&pmap_pmap_pool, PR_WAITOK | PR_ZERO); splx(s); - bzero(pmap, sizeof(*pmap)); simple_lock_init(&pmap->pm_lock); pmap->pm_count = 1; -- cgit v1.2.3