our code grew quickly. Since stage0 carries the library for all the

other stages, give it 16k instead of 8

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>




git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@106 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-02-23 14:04:39 +00:00
parent 3fc4e990dc
commit cfa73bace2
2 changed files with 6 additions and 5 deletions

View file

@ -52,7 +52,7 @@ $(obj)/linuxbios.lar: $(obj)/util/lar/lar lzma $(obj)/linuxbios.initram $(obj)/l
$(Q)cd $(obj)/lar.tmp && ../util/lar/lar c ../linuxbios.lar.pre normal/initram normal/stage2
# TODO: dynamically pad the lar archive. bs is image size - bootblock size (8k)
$(Q)dd if=$(obj)/linuxbios.lar.pre of=$(obj)/linuxbios.lar \
bs=253952 count=1 conv=sync $(SILENT)
bs=245760 count=1 conv=sync $(SILENT)
@ -91,13 +91,14 @@ $(obj)/stage0.init:
$(Q)objcopy -O binary $(obj)/stage0.o $(obj)/stage0.init.pre
# Pad boot block to 0x2000 - 0x100
# Pad boot block to 0x4000 - 0x100
# we will probably remove this step -- not needed if we continue with ldscript.ld
$(Q)dd if=$(obj)/stage0.init.pre of=$(obj)/stage0.init \
bs=7936 conv=sync $(SILENT)
bs=16128 conv=sync $(SILENT)
$(Q)echo "Len: `wc -c < $(obj)/stage0.init.pre`"
$(Q)test `wc -c < $(obj)/stage0.init.pre` -gt 7936 && echo "Error. Bootblock got too big" || true
$(Q)test `wc -c < $(obj)/stage0.init.pre` -gt 16128 && echo "Error. Bootblock got too big" || true

View file

@ -28,7 +28,7 @@ ENTRY(_start)
TARGET(binary)
SECTIONS
{
. = 0xffffe000 + 256; /* leave space for vpd */
. = 0xffffc000 + 256; /* leave space for vpd */
.stage0_1 . : {
_stage0_1 = .;