From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: "Mitesh R. Meswani" <mmeswani@miners.utep.edu>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Problems with macros LOAD_REG_ADDR and LOAD_REG_IMMEDIATE
Date: Tue, 23 Sep 2008 15:47:25 +1000 [thread overview]
Message-ID: <1222148845.12085.99.camel@pasglop> (raw)
In-Reply-To: <BLU103-DS7C4EEE573B423B715F520934B0@phx.gbl>
On Mon, 2008-09-22 at 12:16 -0600, Mitesh R. Meswani wrote:
> I am having issues using LOAD_REG_ADDR and LOAD_REG_IMMEDIATE macros
> on a ppc64 kernel which I have tried on both 2.6.16 and 2.6.17
> kernels.
>
> I noticed that these macros by default loading value 0 instead of the
> actual address. Is this a bug of the compiler that can be fixed, I
> noticed when I did objdump for head_64.S on the following function
> _GLOBAL(pSeries_secondary_smp_init) for the following instruction :
> LOAD_REG_IMMEDIATE(r13, paca) /* Get base vaddr of paca array */
>
> I noticed this in some calls, whereas some calls seem to get symbol address.
How did you "notice" that ?
Ben.
prev parent reply other threads:[~2008-09-23 5:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-22 18:16 Problems with macros LOAD_REG_ADDR and LOAD_REG_IMMEDIATE Mitesh R. Meswani
2008-09-23 5:47 ` Benjamin Herrenschmidt [this message]
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=1222148845.12085.99.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mmeswani@miners.utep.edu \
/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.