summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2010-04-01 12:30:38 +0000
committerjsing <jsing@openbsd.org>2010-04-01 12:30:38 +0000
commit101de865e22d9a4c93a94468530cda2fbda4cfd4 (patch)
treee6128d02e558f3f24a0968f4ad59369adf92e7d4 /sys/lib/libkern
parenttypo (diff)
downloadwireguard-openbsd-101de865e22d9a4c93a94468530cda2fbda4cfd4.tar.xz
wireguard-openbsd-101de865e22d9a4c93a94468530cda2fbda4cfd4.zip
Allow for multiple CPUs by moving to an array of cpu_info.
ok kettenis@
Diffstat (limited to 'sys/lib/libkern')
-rw-r--r--sys/lib/libkern/arch/hppa/spcopy.S8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/lib/libkern/arch/hppa/spcopy.S b/sys/lib/libkern/arch/hppa/spcopy.S
index f84960757bc..c7621663ad4 100644
--- a/sys/lib/libkern/arch/hppa/spcopy.S
+++ b/sys/lib/libkern/arch/hppa/spcopy.S
@@ -48,12 +48,8 @@
*
* assumes that spaces do not clash, otherwise we lose
*/
- .import curproc, data
- .import cpu_info_primary, data
.import copy_on_fault, code
-#define curproc (cpu_info_primary + CI_CURPROC)
-
LEAF_ENTRY(spcopy)
ldw HPPA_FRAME_ARG(4)(sp), ret0
sub,<> r0, ret0, r0
@@ -63,8 +59,8 @@ LEAF_ENTRY(spcopy)
ldo 64(sp), sp
stw rp, HPPA_FRAME_CRP(sp)
/* setup fault handler */
- ldil L%curproc, t1
- ldw R%curproc(t1), t3
+ mfctl cr29, t1
+ ldw CI_CURPROC(t1), t3
ldil L%copy_on_fault, t2
ldw P_ADDR(t3), r2
ldo R%copy_on_fault(t2), t2