From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David S. Miller" Subject: Re: sparc assembly mnemonic Date: Mon, 21 Jun 2004 14:48:09 -0700 Sender: linux-assembly-owner@vger.kernel.org Message-ID: <20040621144809.7a6c63e2.davem@redhat.com> References: <20040621132143.2420ab01.davem@redhat.com> <40D75044.99C7F390@wp.pl> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <40D75044.99C7F390@wp.pl> List-Id: Content-Type: text/plain; charset="us-ascii" To: m_hrebien@wp.pl Cc: linux-assembly@vger.kernel.org On Mon, 21 Jun 2004 23:16:52 +0200 Maciej Hrebien wrote: > "David S. Miller" wrote: > > > > On Mon, 21 Jun 2004 12:34:25 -0600 (CST) > > Fabio Miranda Hamburger wrote: > > > > > what are the sparc assembly equivalent of the following instructions: > > > > > > __asm__ __volatile__ ("fsave %0\n" : : "m"(fpubuf)); > > > __asm__ __volatile__ ("frstor %0\n" : : "m"(fpubuf)); > > > > You have to save each and every register by hand, unlike x86 there > > isn't a specific instruction which saves everything for you. > > What about save/restore mechanism (tmp purposes)? Does it work only for > alu registers (not fpu)? I'm just curious - never played with sparc :( That's correct, the 'save' and 'restore' instructions only store ALU register, and not even all of them, just the current window (this leaves out other windows and the global registers).