Jeff Garzik wrote: > VGA and serial are certainly not hammer+ia32-specific. Make the generic > parts generic... the arch-specific components would need to change > early-foo base addresses perhaps, but otherwise, it's pretty generic. Take 2. - Move the x86_64 early_printk.c into kernel/ - move some of the basic defines into linux/early_printk.h and asm-{i386,x86_64}/early_printk.h - run the setup in start_kernel() before setup_arch() arch/i386/Kconfig | 20 +++ arch/x86_64/kernel/early_printk.c | 218 ----------------------------- arch/x86_64/kernel/head64.c | 5 include/asm-i386/early_printk.h | 8 + include/asm-x86_64/early_printk.h | 8 + include/linux/early_printk.h | 47 ++++++++ init/main.c | 1 kernel/Makefile | 1 kernel/early_printk.c | 209 +++++++++++++++++++++++++++++ 9 files changed, 295 insertions(+), 222 deletions(-) -- Dave Hansen haveblue@us.ibm.com