From: "H. Peter Anvin" <hpa@zytor.com>
To: Avi Kivity <avi@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86-64, rwsem: Avoid store forwarding hazzard in __downgrade_write
Date: Sat, 13 Feb 2010 00:16:58 -0800 [thread overview]
Message-ID: <4B765FFA.1020505@zytor.com> (raw)
In-Reply-To: <1266045183-9563-1-git-send-email-avi@redhat.com>
On 02/12/2010 11:13 PM, Avi Kivity wrote:
> +#ifndef CONFIG_X86_64
> + "i" (-RWSEM_WAITING_BIAS)
> +#else
> + "r" (-RWSEM_WAITING_BIAS)
> #endif
> + : "memory", "cc");
Using an "er" constraint here should work on both architectures.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
next prev parent reply other threads:[~2010-02-13 8:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-13 7:13 [PATCH] x86-64, rwsem: Avoid store forwarding hazzard in __downgrade_write Avi Kivity
2010-02-13 8:16 ` H. Peter Anvin [this message]
2010-02-13 8:29 ` Avi Kivity
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=4B765FFA.1020505@zytor.com \
--to=hpa@zytor.com \
--cc=avi@redhat.com \
--cc=linux-kernel@vger.kernel.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.