[LinuxBIOS] [PATCH] v3: duplicate less code

Stefan Reinauer stepan at coresystems.de
Sun Nov 25 16:26:08 CET 2007

Carl-Daniel Hailfinger schrieb:
> On 21.11.2007 15:39, Carl-Daniel Hailfinger wrote:
> [explanation snipped, see original post]
>> To reduce code duplication, make sure STAGE2_*OBJ does not contain
>> any object already mentioned in STAGE0_*_OBJ.
>> Specifically, remove mem.o, delay.o, udelay_io.o from STAGE2_*OBJ.
>> This saves 386 bytes in stage2 (~240 bytes after LZMA compression).
>> In the future, automatically removing objects from STAGE2_OBJ which
>> are already included in STAGE0_OBJ will be the way to go.
>> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
> Opinions?

Yes. We should think about this again when we sorted out the inter-stage 
call issues.


More information about the coreboot mailing list