From: enorm Date: Mon, 28 Aug 2006 20:41:09 +0800 (CST) Subject: [U-Boot-Users] MPC85xx u-boot amcro definition Message-ID: <44F2E465.000001.23404@bj126app36.126.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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!! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.denx.de/pipermail/u-boot/attachments/20060828/53d7c8e6/attachment.htm