Deleted Added
full compact
subr_syscall.c (5220) subr_syscall.c (5455)
1/*-
2 * Copyright (C) 1994, David Greenman
3 * Copyright (c) 1990, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the University of Utah, and William Jolitz.
8 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)trap.c 7.4 (Berkeley) 5/13/91
1/*-
2 * Copyright (C) 1994, David Greenman
3 * Copyright (c) 1990, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the University of Utah, and William Jolitz.
8 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)trap.c 7.4 (Berkeley) 5/13/91
38 * $Id: trap.c,v 1.41 1994/10/30 20:25:21 bde Exp $
38 * $Id: trap.c,v 1.42 1994/12/24 07:22:58 bde Exp $
39 */
40
41/*
42 * 386 Trap and System call handling
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

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

416 * Check if page table is mapped, if not,
417 * fault it first
418 */
419
420 /* Fault the pte only if needed: */
421 *(volatile char *)v += 0;
422
423 ptepg = (vm_page_t) pmap_pte_vm_page(vm_map_pmap(map), v);
39 */
40
41/*
42 * 386 Trap and System call handling
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

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

416 * Check if page table is mapped, if not,
417 * fault it first
418 */
419
420 /* Fault the pte only if needed: */
421 *(volatile char *)v += 0;
422
423 ptepg = (vm_page_t) pmap_pte_vm_page(vm_map_pmap(map), v);
424 if( ptepg->hold_count == 0)
425 ptepg->act_count += 3;
426 vm_page_hold(ptepg);
427
428 /* Fault in the user page: */
429 rv = vm_fault(map, va, ftype, FALSE);
430
431 vm_page_unhold(ptepg);
432
433 /*

--- 286 unchanged lines hidden ---
424 vm_page_hold(ptepg);
425
426 /* Fault in the user page: */
427 rv = vm_fault(map, va, ftype, FALSE);
428
429 vm_page_unhold(ptepg);
430
431 /*

--- 286 unchanged lines hidden ---