* Problems with macros LOAD_REG_ADDR and LOAD_REG_IMMEDIATE
@ 2008-09-22 18:16 Mitesh R. Meswani
2008-09-23 5:47 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 2+ messages in thread
From: Mitesh R. Meswani @ 2008-09-22 18:16 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1138 bytes --]
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. Thanks *******************************************************************************
Mitesh Meswani
"Success is a journey, Not a Destination "
Email : miteshnet@hotmail.com
******************************************************************************
************************************************
Mitesh R. Meswani
Research Associate
AHPCRC Research Group
Ph.D. Candidate
Department of Computer Science
University of Texas at El Paso
Tel: 915 747 6433 (O)
Email: mmeswani@miners.utep.edu
************************************************
[-- Attachment #2: Type: text/html, Size: 3938 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problems with macros LOAD_REG_ADDR and LOAD_REG_IMMEDIATE
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
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-23 5:47 UTC (permalink / raw)
To: Mitesh R. Meswani; +Cc: linuxppc-dev
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-23 5:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).