Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 G/c cowfault.



details:   https://anonhg.NetBSD.org/src/rev/7e1c432735b2
branches:  trunk
changeset: 535317:7e1c432735b2
user:      briggs <briggs%NetBSD.org@localhost>
date:      Wed Aug 14 21:52:36 2002 +0000

description:
G/c cowfault.

diffstat:

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

diffs (48 lines):

diff -r fef524011a87 -r 7e1c432735b2 sys/arch/arm/arm32/fault.c
--- a/sys/arch/arm/arm32/fault.c        Wed Aug 14 20:50:37 2002 +0000
+++ b/sys/arch/arm/arm32/fault.c        Wed Aug 14 21:52:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fault.c,v 1.21 2002/08/12 20:19:04 bjh21 Exp $ */
+/*     $NetBSD: fault.c,v 1.22 2002/08/14 21:52:36 briggs 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.21 2002/08/12 20:19:04 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.22 2002/08/14 21:52:36 briggs Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -70,7 +70,6 @@
 #include <arch/arm/arm/disassem.h>
 #include <arm/arm32/machdep.h>
  
-int cowfault __P((vaddr_t));
 extern char fusubailout[];
 
 static void report_abort __P((const char *, u_int, u_int, u_int));
@@ -697,21 +696,3 @@
  out:
        userret(p);
 }
-
-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