[LinuxBIOS] patch: lx northbridge use spd_read_byte and add debug prints

ron minnich rminnich at gmail.com
Tue Nov 27 18:00:35 CET 2007


something like this? So we have a standard banner format, and a die
function that guarantees to push stuff out the uart -- handy if it is
a usb debug device, might keep it alive.

ron
Index: lib/console.c
===================================================================
--- lib/console.c       (revision 524)
+++ lib/console.c       (working copy)
@@ -46,6 +46,17 @@
        return i;
 }

+/**
+ * Print a nice banner so we know what step we died on.
+ *
+ * @param s String to put in the middle of the banner
+ */
+
+void banner(int level, char *s)
+{
+       printk(level,
"===========================%s===========================\n", s);
+}
+
 void console_init(void)
 {
        static const char console_test[] =
@@ -63,5 +74,5 @@
 {
        printk(BIOS_EMERG, str);
        while (1)
-               hlt();
+               console_tx_byte(0, (void *)0);
 }




More information about the coreboot mailing list