Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/sys/arch/arm/arm32 Merge fix - G/C cowfault.



details:   https://anonhg.NetBSD.org/src/rev/a1ee5b0dd29d
branches:  nathanw_sa
changeset: 506191:a1ee5b0dd29d
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Wed Aug 28 20:14:24 2002 +0000

description:
Merge fix - G/C cowfault.

diffstat:

 sys/arch/arm/arm32/fault.c |  22 ++--------------------
 1 files changed, 2 insertions(+), 20 deletions(-)

diffs (40 lines):

diff -r 6e3429369872 -r a1ee5b0dd29d sys/arch/arm/arm32/fault.c
--- a/sys/arch/arm/arm32/fault.c        Wed Aug 28 18:17:53 2002 +0000
+++ b/sys/arch/arm/arm32/fault.c        Wed Aug 28 20:14:24 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fault.c,v 1.4.2.12 2002/08/19 21:39:03 thorpej Exp $   */
+/*     $NetBSD: fault.c,v 1.4.2.13 2002/08/28 20:14:24 nathanw Exp $   */
 
 /*
  * Copyright (c) 1994-1997 Mark Brinicombe.
@@ -47,7 +47,7 @@
 #include "opt_pmap_debug.h"
 
 #include <sys/types.h>
-__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.4.2.12 2002/08/19 21:39:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.4.2.13 2002/08/28 20:14:24 nathanw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -699,21 +699,3 @@
  out:
        userret(l);
 }
-
-int
-cowfault(va)
-       vaddr_t va;
-{
-       struct vmspace *vm;
-       int error;
-
-       if (va >= VM_MAXUSER_ADDRESS)
-               return (EFAULT);
-
-       /* uvm_fault can't be called from within an interrupt */
-       KASSERT(current_intr_depth == 0);
-       
-       vm = curproc->p_vmspace;
-       error = uvm_fault(&vm->vm_map, va, 0, VM_PROT_WRITE);
-       return error;
-}



Home | Main Index | Thread Index | Old Index