From: "enorm" <enorm@126.com>
To: <linuxppc-embedded@ozlabs.org>
Subject: MPC85xx u-boot definition
Date: Tue, 29 Aug 2006 09:54:46 +0800 [thread overview]
Message-ID: <017001c6cb0e$1b81f440$a309a8c0@SZD823> (raw)
[-- Attachment #1: Type: text/plain, Size: 966 bytes --]
Hi,
Some naive questions about u-boot for MPC85xx, the definition of
some macro in ppc_asm.tmpl. Can anyone there explain them to me please?
1) In GET_GOT(x) what does " lwz r0,0b-1b(r14) ;" do? what does
"0b-1b" stands for, or the meaning of the syntax? why move the content
of the memory pointing by LR?
#define GET_GOT \
bl 1f ; \
.text 2 ; \
0: .long .LCTOC1-1f ; \
.text ; \
1: mflr r14 ; \
lwz r0,0b-1b(r14) ; \
add r14,r0,r14 ;
2) In START_GOT, any special meaning for the value 32768?
>> .LCTOC1=.+32768
3) Syntax for GOT_ENTRY(NAME) and GOT(NAME), like . - .LCTOC1 (line 57) and .text 2 (line 50)
could not find then in the GNU douments (ld, as, gcc, glibc etc).
Thanks for the help!!
[-- Attachment #2: Type: text/html, Size: 2166 bytes --]
next reply other threads:[~2006-08-29 2:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-29 1:54 enorm [this message]
2006-08-29 20:01 ` MPC85xx u-boot definition Becky Bruce
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='017001c6cb0e$1b81f440$a309a8c0@SZD823' \
--to=enorm@126.com \
--cc=linuxppc-embedded@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