From: Andi Kleen <ak@suse.de>
To: Roland Dreier <roland@digitalvampire.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Fast 64-bit atomic writes (SSE?)
Date: 20 Mar 2004 08:37:47 +0100 [thread overview]
Message-ID: <p73znacvuic.fsf@brahms.suse.de> (raw)
In-Reply-To: <874qskl5ca.fsf@love-shack.home.digitalvampire.org.suse.lists.linux.kernel>
Roland Dreier <roland@digitalvampire.org> writes:
>
> General question:
> What's the best way to do this?
Definitely not how you do it ;-) You corrupt the user space FPU context.
Also you didn't do a CPUID check, so it would just crash on machines
The RAID code has some examples on how to use SSE2 in the kernel correctly.
Better is probably to use CMPXCHG8, which avoids all of this.
-Andi
next parent reply other threads:[~2004-03-20 7:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <874qskl5ca.fsf@love-shack.home.digitalvampire.org.suse.lists.linux.kernel>
2004-03-20 7:37 ` Andi Kleen [this message]
2004-03-20 14:43 ` Fast 64-bit atomic writes (SSE?) Roland Dreier
2004-03-20 14:48 ` Roland Dreier
2004-03-20 0:39 Roland Dreier
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=p73znacvuic.fsf@brahms.suse.de \
--to=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@digitalvampire.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox