From: kettenis Date: Sun, 1 Aug 2010 14:20:41 +0000 (+0000) Subject: Small cleanup of the fpu switching code; don't rely on the fact the HFP_REGS X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8cfc28ed5007e5b3b4feb3436cc72192b559bec2;p=openbsd 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@ --- 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