* Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net [071128 00:52]:
Consolidate all multiple segment handling into lib/lar.c:load_file_segments() and greatly simplify arch/x86/stage1.c code as a result. While I'm at it, improve the LAR segmentation abstraction. Stage 1 code should not have to care about internal representation of segments, that knowledge belongs into lib/lar.c. Constification of most function parameters in lib/lar.c led to a few other now obvious code removals.
Build tested and runtime tested in Qemu.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Index: LinuxBIOSv3-betterlarsegments/arch/x86/stage1.c
=================================================================== --- LinuxBIOSv3-betterlarsegments/arch/x86/stage1.c (Revision 529) +++ LinuxBIOSv3-betterlarsegments/arch/x86/stage1.c (Arbeitskopie) @@ -161,11 +160,9 @@ /* Turn off Cache-As-Ram */ disable_car();
- entry = load_file(&archive, "normal/stage2.o/segment0");
- entry = load_file_segments(&archive, "normal/stage2.o");
please remove ".o" -- these are NOT .o files.