Skip to contentSkip to conversation

a question about relocate_code in start.S

U-Boot-Users YanMin Qiao 2 participants 2 messages Jan 3, 2003

lore
Share & tools
lore
#0 lore raw

im reading the code of u-boot

in <u-boot>/cpu/mpcxx/start.S
under >relocate_code< symbol

i can't figure the difference between _branch 1_ & _branch 2_ why cmp _the start addr of the future code in the mem_ and _the start of the flash_ ??

thnx
best regards

#1 lore raw
Quoted 8 lines · In message <[email protected]> you wrote:

im reading the code of u-boot

in <u-boot>/cpu/mpcxx/start.S
under >relocate_code< symbol

i can't figure the difference between _branch 1_ & _branch 2_ why cmp _the start addr of the future code in the mem_ and _the start of the flash_ ??

Please try to be a bit less cryptic. Which exact parts (lines) of the code are you referring to?

I can neither find any references to "branch 1" or "branch 2" or "future code" or anything like that in the whole source tree.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
We are all agreed that your  theory  is  crazy.  The  question  which
divides  us  is  whether it is crazy enough to have a chance of being
correct. My own feeling is that it is not crazy enough.  - Niels Bohr