From: "David S. Miller" <davem@redhat.com>
To: m_hrebien@wp.pl
Cc: linux-assembly@vger.kernel.org
Subject: Re: sparc assembly mnemonic
Date: Mon, 21 Jun 2004 14:48:09 -0700 [thread overview]
Message-ID: <20040621144809.7a6c63e2.davem@redhat.com> (raw)
In-Reply-To: <40D75044.99C7F390@wp.pl>
On Mon, 21 Jun 2004 23:16:52 +0200
Maciej Hrebien <m_hrebien@wp.pl> wrote:
> "David S. Miller" wrote:
> >
> > On Mon, 21 Jun 2004 12:34:25 -0600 (CST)
> > Fabio Miranda Hamburger <fabmirha@ns.isi.ulatina.ac.cr> 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).
next prev parent reply other threads:[~2004-06-21 21:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-21 18:34 sparc assembly mnemonic Fabio Miranda Hamburger
2004-06-21 20:21 ` David S. Miller
2004-06-21 21:16 ` Maciej Hrebien
2004-06-21 21:48 ` David S. Miller [this message]
2004-06-21 22:00 ` John Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040621144809.7a6c63e2.davem@redhat.com \
--to=davem@redhat.com \
--cc=linux-assembly@vger.kernel.org \
--cc=m_hrebien@wp.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox