drop unneeded __ROMCC__ checks when the check for __PRE_RAM__ is more
[coreboot.git] / src / arch / i386 / lib / console.c
index 15d65a31c73226b2e5cf62b62ef968a2b3890cef..69b5a66f38aa94797a221f034a74a75c8c1efda2 100644 (file)
@@ -19,6 +19,19 @@ void console_init(void)
        print_info(console_test);
 }
 
+
+void post_code(u8 value)
+{
+#if !defined(CONFIG_NO_POST) || CONFIG_NO_POST==0
+#if CONFIG_SERIAL_POST==1
+       print_emerg("POST: 0x");
+       print_emerg_hex8(value);
+       print_emerg("\r\n");
+#endif
+       outb(value, 0x80);
+#endif
+}
+
 void die(const char *str)
 {
        print_emerg(str);