From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: bitops: Fix low-level code to be Thumb-2 compatible
Date: Wed, 2 Feb 2011 20:47:17 +0000 [thread overview]
Message-ID: <20110202204716.GC31043@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <alpine.LFD.2.00.1102021537290.8212@xanadu.home>
On Wed, Feb 02, 2011 at 03:39:13PM -0500, Nicolas Pitre wrote:
> On Wed, 2 Feb 2011, Russell King - ARM Linux wrote:
>
> > On Wed, Feb 02, 2011 at 02:33:55PM -0500, Nicolas Pitre wrote:
> > > On Wed, 2 Feb 2011, Dave Martin wrote:
> > >
> > > > The new bitops code cunningly str <Rt>, [r1, -r1] to trigger
> > > > a fault by attempting to store to address zero.
> > > >
> > > > This code doesn't assemble in Thumb-2, since Thumb-2 doesn't
> > > > allow negative register offsets at all for loads and stores.
> > > >
> > > > The patch loads 0 into r2 and uses that as a base register
> > > > instead for the Thumb-2 case: r2 seems non-live at every
> > > > instance of this problem.
> > > >
> > > > The ARM case is unaffected.
> > > >
> > > > Signed-off-by: Dave Martin <dave.martin@linaro.org>
> > >
> > > Russell proposed a better solution already:
> > >
> > > http://mid.gmane.org/alpine.LFD.2.00.1101181312360.8580 at xanadu.home
> > >
> > > No idea why this wasn't folded in his series yet though.
> >
> > Because I haven't got a round tuit.
> >
> > http://www.quantumenterprises.co.uk/roundtuit/traditional_round_tuits.htm
>
> LOL! No problem, here's a virtual one. :-)
While you're waiting, you might like to get involved with the firestorm
which David Brown has started with GregKH over the visibility of my git
tree. I'm beyond participating in such arguments.
Oh, and if I follow what GregKH is saying, I have to refuse to fold this
change in.
next prev parent reply other threads:[~2011-02-02 20:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 18:53 [PATCH] ARM: bitops: Fix low-level code to be Thumb-2 compatible Dave Martin
2011-02-02 19:33 ` Nicolas Pitre
2011-02-02 19:50 ` Russell King - ARM Linux
2011-02-02 20:39 ` Nicolas Pitre
2011-02-02 20:47 ` Russell King - ARM Linux [this message]
2011-02-02 21:24 ` Russell King - ARM Linux
2011-02-02 21:54 ` Nicolas Pitre
2011-02-03 10:08 ` Dave Martin
2011-02-03 10:44 ` [PATCH] ARM: bitops: Use BX instead of MOV PC,LR Dave Martin
2011-02-03 10:47 ` [PATCH REPOST] " Dave Martin
2011-02-03 16:27 ` Rabin Vincent
2011-02-03 18:06 ` Dave Martin
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=20110202204716.GC31043@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).