summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2007-05-29 18:47:52 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2007-05-29 18:47:52 +0000
commitbce5e9654926a934ec3016513c9e9dabead72875 (patch)
tree2b249e2e2dc3aaa0c6af9363a49d943d18bdcbdf /sys/arch/i386
parentcef6fd5583264e50748b85df457b51cb317ac915 (diff)
Remove trapwrite(), which was only used by 80386.
Prompted by miod@, thanks.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/trap.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index 9cd0ecd30bf..0b5cd237baa 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.83 2007/05/11 10:06:55 pedro Exp $ */
+/* $OpenBSD: trap.c,v 1.84 2007/05/29 18:47:51 tom Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -99,7 +99,6 @@ extern struct emul emul_aout;
static __inline void userret(struct proc *);
void trap(struct trapframe);
-int trapwrite(unsigned);
void syscall(struct trapframe);
/*
@@ -568,31 +567,6 @@ out:
}
/*
- * Compensate for 386 brain damage (missing URKR)
- */
-int
-trapwrite(unsigned int addr)
-{
- vaddr_t va;
- struct proc *p;
- struct vmspace *vm;
-
- va = trunc_page((vaddr_t)addr);
- if (va >= VM_MAXUSER_ADDRESS)
- return 1;
-
- p = curproc;
- vm = p->p_vmspace;
-
- if (uvm_fault(&vm->vm_map, va, 0, VM_PROT_READ | VM_PROT_WRITE))
- return 1;
-
- uvm_grow(p, va);
-
- return 0;
-}
-
-/*
* syscall(frame):
* System call request from POSIX system call gate interface to kernel.
* Like trap(), argument is call by reference.