Segments in pre-C and C part

Eric W. Biederman ebiederman at lnxi.com
Tue Nov 2 17:00:01 CET 2004


Li-Ta Lo <ollie at lanl.gov> writes:

> Eric,
> 
> Why we use two differenct segment lay out for pre-C and
> C part ?

For the code that runs from ram and the code that runs
directly from the rom chip.
 
> In entry32.inc it is 0x08 for code and 0x10 for data but
> in c_start we use 0x10 for code and 0x18 for data.

Good question but it is probably a decent thing that will
keep up from making too many assumptions that they have the
same gdt.

I don't believe this is something that has changed recently.

Eric



More information about the coreboot mailing list