Help needed to understand code

Shubhangi Jadhav shubhangi.jadhav at
Fri Mar 7 08:39:00 CET 2003


	However according to the LinuxBIOS readme the assembly code calls
intel_main in freebios/chip/intel/intel_main.c which in turn calls
linuxbios_main in linuxbios/inflate/main.c. So is intel_main called first or
hardwaremain. Am I missing something
	Please elaborate more on the flow.


-----Original Message-----
From: steven james [mailto:pyro at]
Sent: Friday, March 07, 2003 6:29 PM
To: Shubhangi Jadhav
Cc: linuxbios at
Subject: Re: Help needed to understand code


Probably the first thing to understand is the overall flow of control.

On powerup, the reset vector at f000:fff0 jumps to the start of the
assembly code. The assembly code consists of a series of modular units
that the config files paste together using include directives. It just
starts at the beginning, and new pieces are tacked on as encountered in
the config files. The config files are invoked by directives like
northbridge and southbridge. The master config file is in the mainboard
directory and is invoked by the user's config file.  Most mainboard
directory have example user configs.

The c code is linked together seperatly and then compressed. The last part
of the asm code decompresses it into RAM and calls hardwaremain
(found in src/arch/<arch>/lib/hardwaremain.c currently, <arch> can be
alpha, i386 or ppc). The remainder of the C code is all invoked from


On Fri, 7 Mar 2003, Shubhangi Jadhav wrote:

> Hi,
> 	I'm a LinuxBIOS newbie. I have downloaded the source code for the same
> was trying to understand it. Looks too complicated to me.
> 	I'd started with the code for Intel440gx mainboard, but failed to
> understand how the northbridge and southbridge intialization routines are
> invoked.
> 	Can someone tell me how to go about understanding the code?
> Thanks,
> Shubhangi
> _______________________________________________
> Linuxbios mailing list
> Linuxbios at

-------------------------steven james, director of research, linux labs
... ........ ..... ....                     230 peachtree st nw ste 701
the original linux labs                    30303
      -since 1995                    
                                   office 404.577.7747 fax 404.577.7743

More information about the coreboot mailing list