[U-Boot-Users] after_reloc

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@isofttech.com

In message 20040113033423.1125729960.neelakantan@isofttech.com 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.
What does the assembly command bl mean?
Get yourself a PowerPC processor manual.
What does the line bl board_init_f do?
Call the function board_init_f().
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.
<!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

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.
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
participants (3)
-
Neelakantan
-
Tolunay Orkun
-
Wolfgang Denk