[LinuxBIOS] [v3][PATCH] stage0 and stage1 cleanup and improvements.
Stefan Reinauer
stepan at coresystems.de
Fri Jul 20 02:40:34 CEST 2007
* Marc Jones <Marc.Jones at AMD.com> [070720 00:34]:
> > Modular design and it's advantages and disadvantages. I think we should
> > try to go the "defined interface to stage0" way, as Juergen also
> > suggested (I dont think this is a hack)
> >
>
> If it is only for printk then I don't think it is worth it. I don't
> think that initram would need lar functions but stage2 and a payload might.
> Marc
we wont really have the problem for stage2 i think, because we have ram
there and know the position stage2 lives at. Though it might be
interesting to know and discuss. Qemu was not a good example, since
printk is the only thing initram does there ;)
These are the stage0 symbols that stage2 uses on the qemu target:
undefined reference to `die'
undefined reference to `gdt_limit'
undefined reference to `gdtptr'
undefined reference to `get_option_table'
undefined reference to `post_code'
undefined reference to `printk'
undefined reference to `rtc_init'
undefined reference to `sprintf'
i think the gdt stuff is for vga bios emulation.
rtc_init should probably not be called in stage2 because it was called
in stage0/1 already
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.de • http://www.coresystems.de/
More information about the coreboot
mailing list