move ALLOCSYS() macro from <sys/systm.h> to kern_alloc.c - it's the
only place which uses it
This commit is contained in:
parent
fc2aa2b3be
commit
ad67de5ad8
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_allocsys.c,v 1.25 2003/10/26 10:32:24 jdolecek Exp $ */
|
||||
/* $NetBSD: kern_allocsys.c,v 1.26 2003/10/26 10:45:03 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -67,7 +67,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_allocsys.c,v 1.25 2003/10/26 10:32:24 jdolecek Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_allocsys.c,v 1.26 2003/10/26 10:45:03 jdolecek Exp $");
|
||||
|
||||
#include "opt_bufcache.h"
|
||||
|
||||
|
@ -99,6 +99,9 @@ u_int nbuf = NBUF;
|
|||
u_int bufpages = BUFPAGES; /* optional hardwired count */
|
||||
u_int bufcache = BUFCACHE; /* % of RAM to use for buffer cache */
|
||||
|
||||
#define ALLOCSYS(base, name, type, num) \
|
||||
(name) = (type *)(base); (base) = (caddr_t)ALIGN((name)+(num))
|
||||
|
||||
/*
|
||||
* Allocate space for system data structures. We are given
|
||||
* a starting virtual address and we return a final virtual
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: systm.h,v 1.166 2003/08/07 16:34:17 agc Exp $ */
|
||||
/* $NetBSD: systm.h,v 1.167 2003/10/26 10:45:03 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1988, 1991, 1993
|
||||
|
@ -345,8 +345,6 @@ int uiomove __P((void *, size_t, struct uio *));
|
|||
|
||||
#ifdef _KERNEL
|
||||
caddr_t allocsys __P((caddr_t, caddr_t (*)(caddr_t)));
|
||||
#define ALLOCSYS(base, name, type, num) \
|
||||
(name) = (type *)(base); (base) = (caddr_t)ALIGN((name)+(num))
|
||||
|
||||
int setjmp __P((label_t *));
|
||||
void longjmp __P((label_t *));
|
||||
|
|
Loading…
Reference in New Issue