LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* MPC85xx u-boot definition
@ 2006-08-29  1:54 enorm
  2006-08-29 20:01 ` Becky Bruce
  0 siblings, 1 reply; 2+ messages in thread
From: enorm @ 2006-08-29  1:54 UTC (permalink / raw)
  To: linuxppc-embedded

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-29 20:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-29  1:54 MPC85xx u-boot definition enorm
2006-08-29 20:01 ` Becky Bruce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox