Deleted Added
full compact
kern_malloc.c (1542) kern_malloc.c (1549)
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>
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>
37#include <sys/proc.h>
38#include <sys/map.h>
39#include <sys/kernel.h>
40#include <sys/malloc.h>
41
42#include <vm/vm.h>
43#include <vm/vm_kern.h>
44

--- 298 unchanged lines hidden (view full) ---

343 freep->next = NULL;
344 kbp->kb_last = addr;
345 splx(s);
346}
347
348/*
349 * Initialize the kernel memory allocator
350 */
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
351kmeminit()
352{
353 register long indx;
354 int npg;
355
356#if ((MAXALLOCSAVE & (MAXALLOCSAVE - 1)) != 0)
357 ERROR!_kmeminit:_MAXALLOCSAVE_not_power_of_2
358#endif

--- 23 unchanged lines hidden ---
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 ---