From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: HongWoo Lee <hongwoo7@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: Simple question about powerpc kernel source.
Date: Tue, 21 Jul 2009 10:23:46 +1000 [thread overview]
Message-ID: <1248135826.30899.29.camel@pasglop> (raw)
In-Reply-To: <4A6508AD.6090207@gmail.com>
On Tue, 2009-07-21 at 09:15 +0900, HongWoo Lee wrote:
> First, I aleady understood about @highest, @higher, @h and @l.
> For now, what I want to know is about "##" in the below code.
>
> #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
>
> And I don't want to ask every detail.
> So I want to know the manual or document which describes the detail.
Well, it's just concatenation...
Ie, if you do LOADADDR(rn, .myfunction) it will turn to
lis rn,.myfunction@highest;
ori rn,rn,.myfunction@higher;
rldicr rn,rn,32,31;
oris rn,rn,.myfunction@h;
ori rn,rn,.myfunction@l
>
Which means putting the address of .myfunction into register rn.
Cheers,
Ben.
prev parent reply other threads:[~2009-07-21 0:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 9:00 Simple question about powerpc kernel source HongWoo Lee
2009-07-20 10:02 ` Benjamin Herrenschmidt
2009-07-21 0:15 ` HongWoo Lee
2009-07-21 0:23 ` 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=1248135826.30899.29.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=hongwoo7@gmail.com \
--cc=linuxppc-dev@lists.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).