summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-07-25 04:45:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-07-25 04:45:32 +0000
commitb270cf04f3bddee656e1bfa002928251bc07c9f5 (patch)
treee3b2ac5de55cdcdea586bf6564f9372f1a6a987b /sys/arch
parentff75e6b52299475bbbcb31c8bf74c4cffc01f703 (diff)
kcopy is a space-to-space copy from kernel space, to guess where, -- to the same kernel space, just error on fault
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/machdep.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index d33a565c17e..bb7c3e28407 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.73 2002/07/20 19:24:55 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.74 2002/07/25 04:45:31 mickey Exp $ */
/*
* Copyright (c) 1999-2002 Michael Shalayeff
@@ -1086,13 +1086,7 @@ kcopy(from, to, size)
void *to;
size_t size;
{
- register u_int oldh = curproc->p_addr->u_pcb.pcb_onfault;
-
- curproc->p_addr->u_pcb.pcb_onfault = (u_int)&copy_on_fault;
- bcopy(from, to, size);
- curproc->p_addr->u_pcb.pcb_onfault = oldh;
-
- return 0;
+ return spcopy(HPPA_SID_KERNEL, from, HPPA_SID_KERNEL, to, size);
}
int