Deleted Added
full compact
vm_glue.c (118390) vm_glue.c (118771)
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

56 * Carnegie Mellon University
57 * Pittsburgh PA 15213-3890
58 *
59 * any improvements or extensions that they make and grant Carnegie the
60 * rights to redistribute these changes.
61 */
62
63#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

56 * Carnegie Mellon University
57 * Pittsburgh PA 15213-3890
58 *
59 * any improvements or extensions that they make and grant Carnegie the
60 * rights to redistribute these changes.
61 */
62
63#include <sys/cdefs.h>
64__FBSDID("$FreeBSD: head/sys/vm/vm_glue.c 118390 2003-08-03 13:35:31Z phk $");
64__FBSDID("$FreeBSD: head/sys/vm/vm_glue.c 118771 2003-08-11 07:14:08Z bms $");
65
66#include "opt_vm.h"
67#include "opt_kstack_pages.h"
68#include "opt_kstack_max_pages.h"
69
70#include <sys/param.h>
71#include <sys/systm.h>
72#include <sys/limits.h>

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

184 */
185void
186vslock(addr, len)
187 void *addr;
188 u_int len;
189{
190
191 vm_map_wire(&curproc->p_vmspace->vm_map, trunc_page((vm_offset_t)addr),
65
66#include "opt_vm.h"
67#include "opt_kstack_pages.h"
68#include "opt_kstack_max_pages.h"
69
70#include <sys/param.h>
71#include <sys/systm.h>
72#include <sys/limits.h>

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

184 */
185void
186vslock(addr, len)
187 void *addr;
188 u_int len;
189{
190
191 vm_map_wire(&curproc->p_vmspace->vm_map, trunc_page((vm_offset_t)addr),
192 round_page((vm_offset_t)addr + len), FALSE);
192 round_page((vm_offset_t)addr + len),
193 VM_MAP_WIRE_SYSTEM|VM_MAP_WIRE_NOHOLES);
193}
194
195/*
196 * MPSAFE
197 */
198void
199vsunlock(addr, len)
200 void *addr;
201 u_int len;
202{
203
204 vm_map_unwire(&curproc->p_vmspace->vm_map,
205 trunc_page((vm_offset_t)addr),
194}
195
196/*
197 * MPSAFE
198 */
199void
200vsunlock(addr, len)
201 void *addr;
202 u_int len;
203{
204
205 vm_map_unwire(&curproc->p_vmspace->vm_map,
206 trunc_page((vm_offset_t)addr),
206 round_page((vm_offset_t)addr + len), FALSE);
207 round_page((vm_offset_t)addr + len),
208 VM_MAP_WIRE_SYSTEM|VM_MAP_WIRE_NOHOLES);
207}
208
209/*
210 * Create the U area for a new process.
211 * This routine directly affects the fork perf for a process.
212 */
213void
214vm_proc_new(struct proc *p)

--- 893 unchanged lines hidden ---
209}
210
211/*
212 * Create the U area for a new process.
213 * This routine directly affects the fork perf for a process.
214 */
215void
216vm_proc_new(struct proc *p)

--- 893 unchanged lines hidden ---