public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] what's function of "absolute address" in these codes?
@ 2007-11-13 12:04 xiangguo_li at hotmail.com
  2007-11-13 13:06 ` Jerry Van Baren
  0 siblings, 1 reply; 2+ messages in thread
From: xiangguo_li at hotmail.com @ 2007-11-13 12:04 UTC (permalink / raw)
  To: u-boot

//codes from start.S of 74xx_7xx  

=====================================================================
START_GOT
 ...

 . = EXC_OFF_SYS_RESET
 .globl _start
_start:
 li r21, BOOTFLAG_COLD /* Normal Power-On: Boot from FLASH */
 b boot_cold
 sync

...

boot_cold:
boot_warm:
 /* disable everything */
...
        
 /*
  * Calculate absolute address in FLASH and jump there
  *------------------------------------------------------*/
 lis r3, CFG_MONITOR_BASE at h
 ori r3, r3, CFG_MONITOR_BASE at l
 addi r3, r3, in_flash - _start + EXC_OFF_SYS_RESET           //
 mtlr r3                                                                                //move contents in r3 to Link Register(LR)
 blr                                                                                      //branch to address in Link Register(LR)

in_flash:                                                                                //
 /* let the C-code set up the rest   */
 /*       */
 /* Be careful to keep code relocatable !  */
 /*------------------------------------------------------*/

==========================================================================
why not use "bl in_flash" or  simply comment these codes out?
thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071113/2d53ee7f/attachment.htm 

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

end of thread, other threads:[~2007-11-13 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13 12:04 [U-Boot-Users] what's function of "absolute address" in these codes? xiangguo_li at hotmail.com
2007-11-13 13:06 ` Jerry Van Baren

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