<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px"
bgColor=#ffffff leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Arial size=2>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. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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
<SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 16px -webkit-sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0"><PRE class=done style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; PADDING-TOP: 0px">_GLOBAL(pSeries_secondary_smp_init) for the following instruction :</PRE><PRE class=done style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; PADDING-TOP: 0px"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 16px -webkit-sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0"> LOAD_REG_IMMEDIATE(r13, paca) /* Get base vaddr of paca array */ </PRE><PRE class=done style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; PADDING-TOP: 0px"> </PRE><PRE class=done style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; PADDING-TOP: 0px">I noticed this in some calls, whereas some calls seem to get symbol address. </PRE><PRE class=done style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; PADDING-TOP: 0px"> </PRE><PRE class=done style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; PADDING-TOP: 0px"> </PRE><PRE class=done style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; PADDING-TOP: 0px">Thanks</PRE><PRE class=done style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; PADDING-TOP: 0px"> </PRE></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial
size=2>*******************************************************************************
<BR>Mitesh Meswani<BR>"Success is a journey, Not a Destination "<BR>Email : <A
href="wlmailhtml:{A6755B07-F4DC-48AF-A850-22AFF26BDE9D}mid://00000166/!x-usc:mailto:miteshnet@hotmail.com">miteshnet@hotmail.com</A><BR>******************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>************************************************<BR>Mitesh R.
Meswani<BR>Research Associate<BR>AHPCRC Research Group<BR>Ph.D.
Candidate<BR>Department of Computer Science<BR>University of Texas at El
Paso<BR>Tel: 915 747 6433 (O)<BR>Email: <A
href="mailto:mmeswani@miners.utep.edu">mmeswani@miners.utep.edu</A><BR>************************************************<BR> </FONT></DIV></BODY></HTML>