From: "M. Koehrer" <mathias_koehrer@domain.hid>
To: gilles.chanteperdrix@xenomai.org, mathias_koehrer@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Are xmm-registers saved with a (task) context
Date: Wed, 11 Jun 2008 14:37:36 +0200 (CEST) [thread overview]
Message-ID: <28245271.1213187856046.JavaMail.ngmail@domain.hid> (raw)
In-Reply-To: <2ff1a98a0806110518ob7cb5b5h7c0471e3c3ce8c09@domain.hid>
Hi Gilles,
thanks for your response.
With the MMX registers, you are right. They are actually aliased with the FPU registers.
However, the XMM registers (SSE, SSE2) are not aliased.
The aliased MMX registers AND the not-aliased XMM registers are available with today's CPUs,
i.e. you still have to take card when using MMX registers.
(All information according to Intel's 64 and IA-32 Architectures
Software Developers Manual, Volume 1, Chapters 9,10,11)
>From your mail before I assume that the (not-aliased) XMM registers are saved with the switching routine
and can be used without have to save/restore them.
Regards
Mathias
> > The xmm register are saved by the FPU switching routines. Note
> > however, that depending on the x86 you are using the xmm registers are
> > aliased to the FPU register or are separate registers. So, on machines
> > where the xmm registers are aliased to normal FPU registers, you have
> > to do the save restore on your own if you want to use MMX, SSE, or
> > SSE2 and use FPU instructions in the same thread.
>
> This probably applies to very old CPUs, xmm are separate registers now.
>
--
Mathias Koehrer
mathias_koehrer@domain.hid
Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 60 Pay TV Sender, einen elektronischen Programmführer mit Movie Star Bewertungen von TV Movie. Außerdem, aktuelle Filmhits und spannende Dokus in der Arcor-Videothek. Infos unter www.arcor.de/tv
next prev parent reply other threads:[~2008-06-11 12:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-11 10:26 [Xenomai-help] Are xmm-registers saved with a (task) context switch M. Koehrer
2008-06-11 12:16 ` Gilles Chanteperdrix
2008-06-11 12:18 ` Gilles Chanteperdrix
2008-06-11 12:37 ` M. Koehrer [this message]
2008-06-11 12:45 ` [Xenomai-help] Are xmm-registers saved with a (task) context Gilles Chanteperdrix
2008-06-11 13:09 ` M. Koehrer
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=28245271.1213187856046.JavaMail.ngmail@domain.hid \
--to=mathias_koehrer@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.