From: Glauber de Oliveira Costa <gcosta@redhat.com>
To: "Björn Steinbrink" <B.Steinbrink@gmx.de>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: Re: [PATCH] Fix msr register allocation
Date: Mon, 30 Jul 2007 13:35:57 -0300 [thread overview]
Message-ID: <1185813358.4347.24.camel@t60> (raw)
In-Reply-To: <20070730153734.GA6921@atjola.homenet>
On Mon, 2007-07-30 at 17:37 +0200, Björn Steinbrink wrote:
> On 2007.07.30 12:25:54 -0300, Glauber de Oliveira Costa wrote:
> > Since the value in ret will go through a return statement,
> ^^^
> You mean "err" I guess?
Yeah, you're right.
> Note that the EAX output constraint is re-used in the input section for
> (u32)val, i.e. the lower half of the value to be written. And "wrmsr"
> needs that in EAX, so you cannot change the output constraint without
> touching the input constraint.
Right again. Will send a new patch that also changes the input constraint.
> Also, I do not see how the compiler could do any better than having the
> return value already in EAX, but that doesn't really mean anything ;-)
Yet, we should only force the compiler to a particular choice when we
have to, IMHO. So, unless anyone gives another reason not to, I will
send another patch with your warnings fixed.
next prev parent reply other threads:[~2007-07-30 16:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-30 15:25 [PATCH] Fix msr register allocation Glauber de Oliveira Costa
2007-07-30 15:37 ` Björn Steinbrink
2007-07-30 16:35 ` Glauber de Oliveira Costa [this message]
2007-07-30 19:59 ` Andi Kleen
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=1185813358.4347.24.camel@t60 \
--to=gcosta@redhat.com \
--cc=B.Steinbrink@gmx.de \
--cc=akpm@linux-foundation.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox