All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH][v3 3/4] uClibc: redo configuration
Date: Fri, 9 Jul 2010 00:16:33 +0200	[thread overview]
Message-ID: <20100708221633.GE23169@mx.loc> (raw)
In-Reply-To: <AANLkTikuNN4qw76uAXxlmIhIlOJVTxjRD8vN7lg7kRyf@mail.gmail.com>

On Thu, Jul 08, 2010 at 03:03:04PM -0700, Khem Raj wrote:
>On Thu, Jul 8, 2010 at 2:34 PM, Phil Blundell <philb@gnu.org> wrote:
>> On Thu, 2010-07-08 at 14:31 -0700, Khem Raj wrote:
>>> On Thu, Jul 8, 2010 at 2:29 PM, Phil Blundell <philb@gnu.org> wrote:
>>> > On Thu, 2010-07-08 at 14:03 -0700, Khem Raj wrote:
>>> >> If I am not wrong you can still do interworking and not have bx (using
>>> >> mov pc,lr)
>>> >
>>> > That's not an interworking instruction in ARMv4T, and I don't think it
>>> > is in ARMv5TE either.  You might be thinking of pop {pc}, which is
>>> > interworking in ARMv5TE, but even this is not interworking in v4t.
>>>
>>> tst lr, #1
>>> moveq pc, lr
>>> bx lr
>>>
>>> Thats how its done on armv4 for EABI
>>
>> Right, but the MOV in that case is not an interworking instruction; it's
>> just a way to avoid executing BX when you don't actually need to switch
>> mode, so that you can create a library which still works in an ARM-only
>> environment.
>>
>> The final BX in that sequence is mandatory in order for it to actually
>> function as an interworking return.
>
>right you are. yes bx is always needed for thumb interworking. So I guess
>for uclibc we can rely on THUMB_INTERWORK distro feature if set correctly.

AFAIR eabi implies thumb, thumb makes interwork possible, interwork
imples bx but my memory could fail me on this.

Can you, khem, think of a set of "thumb" and "interwork" (and
potentially "bx" for HW that supports it, like IIRC all e.g. cortex
onward based designs) in DISTRO_FEATURES and MACHINE_FEATURES that can
be used generically?

A first step would be to just resuse the infrastructure in this thread,
later on we could think about some sort of combined_feature mechanism to
properly setup arm ontop of this proposed infrastructure.

cheers,



  reply	other threads:[~2010-07-09  9:05 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-06 19:32 [PATCH][v3 0/4] honour {MACHINE, DISTRO}_FEATURES for configuration Bernhard Reutner-Fischer
2010-07-06 19:32 ` [PATCH][v3 1/4] busybox: configure according to {MACHINE, DISTRO}_FEATURES Bernhard Reutner-Fischer
2010-07-06 19:32 ` [PATCH][v3 2/4] busybox: picking IPv6 per default is not up to the package Bernhard Reutner-Fischer
2010-07-06 19:32 ` [PATCH][v3 3/4] uClibc: redo configuration Bernhard Reutner-Fischer
2010-07-08 19:02   ` Khem Raj
2010-07-08 20:28     ` Bernhard Reutner-Fischer
2010-07-08 20:31       ` Khem Raj
2010-07-08 20:44         ` Bernhard Reutner-Fischer
2010-07-08 20:41       ` Khem Raj
2010-07-08 20:47     ` Phil Blundell
2010-07-08 21:03       ` Khem Raj
2010-07-08 21:29         ` Phil Blundell
2010-07-08 21:31           ` Khem Raj
2010-07-08 21:34             ` Phil Blundell
2010-07-08 22:03               ` Khem Raj
2010-07-08 22:16                 ` Bernhard Reutner-Fischer [this message]
2010-07-08 22:55                   ` Khem Raj
2010-07-08 21:12       ` Khem Raj
2010-07-08 21:32         ` Phil Blundell
2010-07-08 22:01           ` Khem Raj
2010-07-06 19:32 ` [PATCH][v3 4/4] uclibc: add 0.9.31 Bernhard Reutner-Fischer

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=20100708221633.GE23169@mx.loc \
    --to=rep.dot.nop@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /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.