linux-mips
[Top] [All Lists]

Re: sdc1 $f0 in r4k_switch.S

To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Subject: Re: sdc1 $f0 in r4k_switch.S
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 19 Oct 2004 19:36:44 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <20041007.130538.71082967.nemoto@toshiba-tops.co.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20041007.130538.71082967.nemoto@toshiba-tops.co.jp>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Thu, Oct 07, 2004 at 01:05:38PM +0900, Atsushi Nemoto wrote:

> I found a bug in resume() in 2.6 kernel.  $f0 register may not be
> saved on context switch in 64bit kernel.  Here is a quick fix.

But we compensate for not storing $f0 by restoring it twice ;-)

> Or moving "sdc1 $f0" to fpu_save_16even might be better fix.

And while we're at it eleminating the special handling for
CONFIG_MIPS32 / CONFIG_MIPS64.


  Ralf

<Prev in Thread] Current Thread [Next in Thread>