diff --git a/src/arch/i386/include/arch/intel.h b/src/arch/i386/include/arch/intel.h index df6604e08e..d05183adad 100644 --- a/src/arch/i386/include/arch/intel.h +++ b/src/arch/i386/include/arch/intel.h @@ -354,9 +354,20 @@ NO FUNCTIONS YET! /* originally this macro was from STPC BIOS */ +/* kevin/Ispiri - changed to default to serial port POST codes */ +#ifndef SERIAL_POST #define intel_chip_post_macro(value) \ movb $value, %al ; \ outb %al, $0x80 +#else +#define intel_chip_post_macro(value) \ + mov $'<', %al ; \ + CALLSP(console_tx_al) ; \ + mov $value, %al ; \ + CALLSP(console_tx_hex8) ; \ + mov $'>', %al ; \ + CALLSP(console_tx_al) +#endif #define INTEL_PDATA_MAGIC 0xdeadbeef diff --git a/src/lib/subr.c b/src/lib/subr.c index 2d96ceed37..53ca1f1f29 100644 --- a/src/lib/subr.c +++ b/src/lib/subr.c @@ -89,12 +89,8 @@ void error(char errmsg[]) */ void post_code(uint8_t value) { -#if SERIAL_POST - unsigned long hi, lo; - // DAMMIT! This just broke! - //rdtsc(lo, hi); - printk_info("POST: 0x%02x, TSC Lo: %d, Hi: %d\n", - value, lo, hi); +#ifdef SERIAL_POST + printk_info("POST: 0x%02x\n", value); #endif outb(value, 0x80); }