Skip to contentSkip to conversation

after_reloc

U-Boot-Users Neelakantan 3 participants 3 messages Jan 13, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,
?
I have a doubt.Who is calling the function after_reloc located in board specific c files.What does the assembly command?bl mean? ?
What does the line?
bl board_init_f? ?do?
?
If u anyone of u find time please clear my doubt.
?
________________________________________________?
With Grace,
N.S.Neelakantan
Extn:88
mailto:neelakantan at isofttech.com
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040113/c1d82d8b/attachment.htm

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

I have a doubt.Who is calling the function after_reloc located in board specific c files.

Use "grep" to find out. Lear to use the available tools.

Quoted 1 line

What does the assembly command bl mean?

Get yourself a PowerPC processor manual.

Quoted 2 lines

What does the line
bl board_init_f do?

Call the function board_init_f().

Quoted 1 line

If u anyone of u find time please clear my doubt.

Ummm... please: this list is NOT intended to teach programming; if youcannot read assembler or C code you have to learn this first.

Quoted 5 lines

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dwindows-125= 2">
<STYLE type=3Dtext/css>

And please NEVER post HTML to this list!

Best regards,

Wolfgang Denk

Signature · 4 lines
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Either one of us, by himself, is expendable.  Both of us are not.
	-- Kirk, "The Devil in the Dark", stardate 3196.1
#2 lore raw
In reply to Neelakantan
Quoted 1 line

What does the assembly command bl mean?

bl = branch and link. It is the way to call functions in powerpc family. The return address is stored in the LR (Link Register). The function returns using blr (branch to link register). You need PPC manual for your CPU to understand these. I like the IBM ones (as opposed to Motorola ones) more useful. If you are using PPC405GP search for the manual using Google. If you cannot find it let me know I'll send you the link to PDF file.

Quoted 2 lines

What does the line
bl board_init_f do?

It calls board_init_f function. This is part of starup code. board_init_f() does initializations while your code is executing from flash. For example, board_init_f() calls board_pre_init(). Read the source file containing board_init_f()

Regards,
Tolunay