diff options
author | Julian Elischer <julian@FreeBSD.org> | 1995-08-28 09:19:25 +0000 |
---|---|---|
committer | Julian Elischer <julian@FreeBSD.org> | 1995-08-28 09:19:25 +0000 |
commit | 2b14f991e64ebe31ca31a1a41237061c22a753d0 (patch) | |
tree | 53b6da073fd58ab81ebf18bb0642954c76b642bd /sys/kern/kern_malloc.c | |
parent | fe89a532f18d81f8e76e48fc462f070e870d035d (diff) | |
download | src-2b14f991e64ebe31ca31a1a41237061c22a753d0.tar.gz src-2b14f991e64ebe31ca31a1a41237061c22a753d0.zip |
Reviewed by: julian with quick glances by bruce and others
Submitted by: terry (terry lambert)
This is a composite of 3 patch sets submitted by terry.
they are:
New low-level init code that supports loadbal modules better
some cleanups in the namei code to help terry in 16-bit character support
some changes to the mount-root code to make it a little more
modular..
NOTE: mounting root off cdrom or NFS MIGHT be broken as I haven't been able
to test those cases..
certainly mounting root of disk still works just fine..
mfs should work but is untested. (tomorrows task)
The low level init stuff includes a total rewrite of init_main.c
to make it possible for new modules to have an init phase by simply
adding an entry to a TEXT_SET (or is it DATA_SET) list. thus a new module can
be added to the kernel without editing any other files other than the
'files' file.
Notes
Notes:
svn path=/head/; revision=10358
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r-- | sys/kern/kern_malloc.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 600e54f6b1ce..52c95c5228ea 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_malloc.c 8.3 (Berkeley) 1/4/94 - * $Id: kern_malloc.c,v 1.11 1995/04/16 11:25:15 davidg Exp $ + * $Id: kern_malloc.c,v 1.12 1995/05/30 08:05:33 rgrimes Exp $ */ #include <sys/param.h> @@ -43,6 +43,14 @@ #include <vm/vm.h> #include <vm/vm_kern.h> +/* + * System initialization + */ + +static void kmeminit __P((caddr_t)); +SYSINIT(kmem, SI_SUB_KMEM, SI_ORDER_FIRST, kmeminit, NULL) + + struct kmembuckets bucket[MINBUCKET + 16]; struct kmemstats kmemstats[M_LAST]; struct kmemusage *kmemusage; @@ -356,8 +364,10 @@ free(addr, type) /* * Initialize the kernel memory allocator */ -void -kmeminit() +/* ARGSUSED*/ +static void +kmeminit( udata) +caddr_t udata; /* not used*/ { register long indx; int npg; |