diff options
author | 2011-04-14 13:49:31 +0000 | |
---|---|---|
committer | 2011-04-14 13:49:31 +0000 | |
commit | 8cad6059a15814007d3d06a4ed5f36cb2eda1a5c (patch) | |
tree | 95736ae959690d2d75a2853526177fb8f05b2152 /sys/lib/libkern | |
parent | Ansify. (diff) | |
download | wireguard-openbsd-8cad6059a15814007d3d06a4ed5f36cb2eda1a5c.tar.xz wireguard-openbsd-8cad6059a15814007d3d06a4ed5f36cb2eda1a5c.zip |
Correctly load p_addr and avoid trashing the source address.
Diffstat (limited to 'sys/lib/libkern')
-rw-r--r-- | sys/lib/libkern/arch/hppa64/bcopy.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/lib/libkern/arch/hppa64/bcopy.m4 b/sys/lib/libkern/arch/hppa64/bcopy.m4 index 12e8ca22a1d..3ab93a07f2a 100644 --- a/sys/lib/libkern/arch/hppa64/bcopy.m4 +++ b/sys/lib/libkern/arch/hppa64/bcopy.m4 @@ -1,4 +1,4 @@ -define(_rcsid,``$OpenBSD: bcopy.m4,v 1.4 2007/11/24 19:42:01 deraadt Exp $'')dnl +define(_rcsid,``$OpenBSD: bcopy.m4,v 1.5 2011/04/14 13:49:31 jsing Exp $'')dnl dnl dnl dnl This is the source file for bcopy.S, spcopy.S @@ -223,10 +223,10 @@ LEAF_ENTRY(spcopy) std %rp, HPPA_FRAME_RP(%sp) ldo HPPA_FRAME_SIZE(%sp), %sp /* setup fault handler */ - mfctl %cr24, %arg1 - ldd CI_CURPROC(%arg1), %r1 + mfctl %cr24, %r1 + ldd CI_CURPROC(%r1), %r1 ldil L%copy_on_fault, %r21 - ldd P_ADDR(%r20), %r2 + ldd P_ADDR(%r1), %r2 ldo R%copy_on_fault(%r21), %r21 ldd PCB_ONFAULT+U_PCB(%r2), %r1 std %r21, PCB_ONFAULT+U_PCB(%r2) |