linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: David Miller <davem@davemloft.net>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] [POWERPC] Fix bootwrapper builds with newer gcc versions
Date: Sat, 03 May 2008 17:50:17 +1000	[thread overview]
Message-ID: <1209801017.26383.21.camel@pasglop> (raw)
In-Reply-To: <20080502.163855.96423898.davem@davemloft.net>


On Fri, 2008-05-02 at 16:38 -0700, David Miller wrote:
> Oh, I forgot about how far function calls are done on powerpc.
> Yes, that will suck.
> 
> Is there some way to map all of the modules in the low 32-bits and
> thus aovid the trampolines?  The powerpc call instruction can cover
> 4GB like on sparc right?
> 
> Actually, I remember there is some linkage register that has
> to be setup on powerpc with the code model you guys use, is
> that the problem?

The TOC yes, so we end up doing cross-TOC calls, which we would want to
avoid to get to base runtime stuff such as the save/restore bits.

Especially useless since those runtime don't need a TOC at all :-)

Best would be if we could get those runtime bits linked in the module
itself, but I don't know enough about our toolchain to know if that's
easy (I suppose everything is always possible :-)

I can ask my local expert next week.

Ben.

  parent reply	other threads:[~2008-05-03  7:50 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-02  8:11 [PATCH] [POWERPC] Fix bootwrapper builds with newer gcc versions Kumar Gala
2008-05-02 11:54 ` Segher Boessenkool
2008-05-02 13:28   ` Kumar Gala
2008-05-02 13:37     ` Segher Boessenkool
2008-05-02 13:41       ` Kumar Gala
2008-05-02 15:20         ` Scott Wood
2008-05-02 17:15         ` Segher Boessenkool
2008-05-02 14:09   ` Kumar Gala
2008-05-02 17:11     ` Segher Boessenkool
2008-05-02 21:28       ` Kumar Gala
2008-05-02 21:40         ` David Miller
2008-05-02 21:58           ` Kumar Gala
2008-05-02 23:27           ` Benjamin Herrenschmidt
2008-05-02 23:38             ` David Miller
2008-05-03  0:06               ` Segher Boessenkool
2008-05-03  7:50               ` Benjamin Herrenschmidt [this message]
2008-05-03  7:55                 ` David Miller
2008-05-03 11:01                   ` Benjamin Herrenschmidt
2008-05-05 11:55                   ` Gabriel Paubert
2008-05-02 12:13 ` Josh Boyer
2008-05-02 13:32   ` Kumar Gala
2008-05-02 13:53     ` Josh Boyer
2008-05-02 13:59       ` Kumar Gala

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=1209801017.26383.21.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=davem@davemloft.net \
    --cc=linuxppc-dev@ozlabs.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).