* Marc Jones Marc.Jones@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