[PATCH] x86: print out early faults via early_printk()

Lost a few hours debugging an early-bootup fault within printk itself,
which manifested itself as a hard to debug early hang.

This patch makes it much easier by printing out early faults via
early_printk(), which function is a lot simpler than a full printk, and
hence more likely to succeed in emergencies. (We do not recover from early
faults anyway, so there's no loss from not having these messages in the
normal printk buffer.)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Ingo Molnar and committed by Linus Torvalds c0cdf193 2903fb16

+4
+4
arch/i386/kernel/head.S
··· 398 398 pushl 32(%esp) 399 399 pushl 40(%esp) 400 400 pushl $int_msg 401 + #ifdef CONFIG_EARLY_PRINTK 402 + call early_printk 403 + #else 401 404 call printk 405 + #endif 402 406 addl $(5*4),%esp 403 407 popl %ds 404 408 popl %es