fixed postcode to serial by Kevin Hester
This commit is contained in:
parent
f50296e1c8
commit
527f8a5516
2 changed files with 13 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue