[LinuxBIOS] v3: convert stage2 to multi-segment LAR

Jordan Crouse jordan.crouse at amd.com
Tue Nov 27 17:04:11 CET 2007

On 27/11/07 10:33 +0100, Stefan Reinauer wrote:
> * Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> [071127 03:55]:
> > Convert stage2 handling from binary blob to multi-segment LAR which is
> > created by parsing the ELF file linuxbios.stage2.o. That way, we avoid
> > manual specification of the entry point for stage2 code. A few LAR
> > functions are now unused and can be removed in a following cleanup session.
> > Another suggested cleanup would be factoring out a load_all_segments
> > function, resulting in less code duplication.
> I can't believe this is the workaround for not being able to put a 
> "jmp _entry" in front of the code.
> It might be becoming just another "how do we explain _that_ to people
> now?" just like the v2 device tree.

I'm not saying that the new method isn't a good one, but Stefan has a point.
This will be difficult to explain to people.  I'll start with the most 
obvious question:

How many bytes is it costing me to have N elf files in the LAR instead of
N blobs?


Jordan Crouse
Systems Software Development Engineer 
Advanced Micro Devices, Inc.

More information about the coreboot mailing list