summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-08-01 14:20:42 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-08-01 14:20:42 +0000
commit66c3c362a329d98069c91c8bffb517707818d50e (patch)
treed41f3a0cd378a99c24b99106dee8a5f10d7547b7 /sys/arch
parentba44b8dde5a824fc2d1101cdf40b601c06defee4 (diff)
Small cleanup of the fpu switching code; don't rely on the fact the HFP_REGS
is actually zero and remove a redundant instruction. ok jsing@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/locore.S7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/locore.S b/sys/arch/hppa/hppa/locore.S
index 44ec1edcecc..796fe5555ff 100644
--- a/sys/arch/hppa/hppa/locore.S
+++ b/sys/arch/hppa/hppa/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.177 2010/07/01 23:20:13 jsing Exp $ */
+/* $OpenBSD: locore.S,v 1.178 2010/08/01 14:20:41 kettenis Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -1137,9 +1137,8 @@ $fpusw_nosave
fldds 0(r17), fr0 /* fr0 must be restored last */
mfctl cr29, r1
- stw r17, CI_FPU_STATE(r1)
- mfctl cr30, r17
- stw r1, HFP_CPU(r17)
+ stw r9, CI_FPU_STATE(r1)
+ stw r1, HFP_CPU(r9)
sync
$fpusw_done