<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
-------- Original MessageĀ --------<br>
Subject: Re: Simple question about powerpc kernel source.<br>
From: Benjamin Herrenschmidt <a class="moz-txt-link-rfc2396E" href="mailto:benh@kernel.crashing.org"><benh@kernel.crashing.org></a><br>
To: HongWoo Lee <a class="moz-txt-link-rfc2396E" href="mailto:hongwoo7@gmail.com"><hongwoo7@gmail.com></a><br>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:linuxppc-dev@lists.ozlabs.org">linuxppc-dev@lists.ozlabs.org</a><br>
Date: Mon Jul 20 2009 19:02:38 GMT+0900 <br>
<blockquote cite="mid:1248084158.30899.8.camel@pasglop" type="cite">
<pre wrap="">On Mon, 2009-07-20 at 18:00 +0900, HongWoo Lee wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
I have something to ask for the ppc kernel source.
#define LOADADDR(rn,name) \
lis rn,name##@highest; \
ori rn,rn,name##@higher; \
rldicr rn,rn,32,31; \
oris rn,rn,name##@h; \
ori rn,rn,name##@l
Is ## used for concatenation. I'm not sure because it is just meaningless.
If so what on earth is the result of concatenating ?
And is there a good reference to understand powerpc asm ?
I'm reading Power ISA, but I can't find @highest, @higher and ##.
It would be good to know the reference book.
</pre>
</blockquote>
<pre wrap=""><!---->
You already asked pretty much the same question with the subject "Simple
question about powerpc asm" and it was already replied to.
Cheers,
Ben.
</pre>
</blockquote>
<br>
Thank you, Ben. <br>
<br>
First, I aleady understood about @highest, @higher, @h and @l. <br>
For now, what I want to know is about "##" in the below code. <br>
<br>
<pre wrap="">#define LOADADDR(rn,name) \
lis rn,name##@highest; \
ori rn,rn,name##@higher; \
rldicr rn,rn,32,31; \
oris rn,rn,name##@h; \
ori rn,rn,name##@l</pre>
<br>
And I don't want to ask every detail. <br>
So I want to know the manual or document which describes the detail. <br>
<br>
<br>
Regards, <br>
HongWoo. <br>
<br>
</body>
</html>