Don't allocate mclrefcnt[]; it's dead and gone.
This commit is contained in:
parent
7ae296c7de
commit
2268a2c7eb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.88 1997/03/26 22:43:07 gwr Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.89 1997/03/27 21:01:52 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Gordon W. Ross
|
||||
@ -322,12 +322,8 @@ cpu_startup()
|
||||
*/
|
||||
|
||||
/*
|
||||
* Finally, allocate mbuf pool. Since mclrefcnt is an off-size
|
||||
* we use the more space efficient malloc in place of kmem_alloc.
|
||||
* Finally, allocate mbuf cluster submap.
|
||||
*/
|
||||
mclrefcnt = (char *)malloc(NMBCLUSTERS+CLBYTES/MCLBYTES,
|
||||
M_MBUF, M_NOWAIT);
|
||||
bzero(mclrefcnt, NMBCLUSTERS+CLBYTES/MCLBYTES);
|
||||
mb_map = kmem_suballoc(kernel_map, (vm_offset_t *)&mbutl, &maxaddr,
|
||||
VM_MBUF_SIZE, FALSE);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.11 1997/03/26 22:43:10 gwr Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.12 1997/03/27 21:01:55 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -320,12 +320,8 @@ cpu_startup()
|
||||
*/
|
||||
|
||||
/*
|
||||
* Finally, allocate mbuf pool. Since mclrefcnt is an off-size
|
||||
* we use the more space efficient malloc in place of kmem_alloc.
|
||||
* Finally, allocate mbuf cluster submap.
|
||||
*/
|
||||
mclrefcnt = (char *)malloc(NMBCLUSTERS+CLBYTES/MCLBYTES,
|
||||
M_MBUF, M_NOWAIT);
|
||||
bzero(mclrefcnt, NMBCLUSTERS+CLBYTES/MCLBYTES);
|
||||
mb_map = kmem_suballoc(kernel_map, (vm_offset_t *)&mbutl, &maxaddr,
|
||||
VM_MBUF_SIZE, FALSE);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.11 1997/03/26 22:43:10 gwr Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.12 1997/03/27 21:01:55 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -320,12 +320,8 @@ cpu_startup()
|
||||
*/
|
||||
|
||||
/*
|
||||
* Finally, allocate mbuf pool. Since mclrefcnt is an off-size
|
||||
* we use the more space efficient malloc in place of kmem_alloc.
|
||||
* Finally, allocate mbuf cluster submap.
|
||||
*/
|
||||
mclrefcnt = (char *)malloc(NMBCLUSTERS+CLBYTES/MCLBYTES,
|
||||
M_MBUF, M_NOWAIT);
|
||||
bzero(mclrefcnt, NMBCLUSTERS+CLBYTES/MCLBYTES);
|
||||
mb_map = kmem_suballoc(kernel_map, (vm_offset_t *)&mbutl, &maxaddr,
|
||||
VM_MBUF_SIZE, FALSE);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.38 1997/03/26 22:43:12 gwr Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.39 1997/03/27 21:01:56 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
@ -234,12 +234,8 @@ cpu_startup()
|
||||
16 * NCARGS, TRUE);
|
||||
|
||||
/*
|
||||
* Finally, allocate mbuf pool. Since mclrefcnt is an off-size we
|
||||
* use the more space efficient malloc in place of kmem_alloc.
|
||||
* Finally, allocate mbuf cluster submap.
|
||||
*/
|
||||
mclrefcnt = (char *) malloc(NMBCLUSTERS + CLBYTES / MCLBYTES,
|
||||
M_MBUF, M_NOWAIT);
|
||||
bzero(mclrefcnt, NMBCLUSTERS + CLBYTES / MCLBYTES);
|
||||
mb_map = kmem_suballoc(kernel_map, (vm_offset_t *) & mbutl, &maxaddr,
|
||||
VM_MBUF_SIZE, FALSE);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.8 1997/03/26 22:43:14 gwr Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.9 1997/03/27 21:01:58 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -352,12 +352,8 @@ again:
|
||||
VM_PHYS_SIZE, TRUE);
|
||||
|
||||
/*
|
||||
* Finally, allocate mbuf pool. Since mclrefcnt is an off-size
|
||||
* we use the more space efficient malloc in place of kmem_alloc.
|
||||
* Finally, allocate mbuf cluster submap.
|
||||
*/
|
||||
mclrefcnt = (char *)malloc(NMBCLUSTERS+CLBYTES/MCLBYTES,
|
||||
M_MBUF, M_NOWAIT);
|
||||
bzero(mclrefcnt, NMBCLUSTERS+CLBYTES/MCLBYTES);
|
||||
mb_map = kmem_suballoc(kernel_map, (vm_offset_t *)&mbutl, &maxaddr,
|
||||
VM_MBUF_SIZE, FALSE);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user