1/* 2 * Copyright (c) 1987, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)kern_malloc.c 8.3 (Berkeley) 1/4/94 34 */ 35 36#include <sys/param.h> |
37#include <sys/systm.h> |
38#include <sys/proc.h> 39#include <sys/map.h> 40#include <sys/kernel.h> 41#include <sys/malloc.h> 42 43#include <vm/vm.h> 44#include <vm/vm_kern.h> 45 --- 298 unchanged lines hidden (view full) --- 344 freep->next = NULL; 345 kbp->kb_last = addr; 346 splx(s); 347} 348 349/* 350 * Initialize the kernel memory allocator 351 */ |
352void |
353kmeminit() 354{ 355 register long indx; 356 int npg; 357 358#if ((MAXALLOCSAVE & (MAXALLOCSAVE - 1)) != 0) 359 ERROR!_kmeminit:_MAXALLOCSAVE_not_power_of_2 360#endif --- 23 unchanged lines hidden --- |