Thanks to Carl-Daniel for bringing this issue up again today. This patch is especially useful if you do post-code logging with the artec lpc dongle.

--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
     Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [EMAIL PROTECTED]  • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866

Fix outb to 0x80 delay functions to use inb instead (fixes excessive post codes
in a couple of occurences)

Signed-off-by: Stefan Reinauer <[EMAIL PROTECTED]>


Index: src/cpu/emulation/qemu-x86/northbridge.c
===================================================================
--- src/cpu/emulation/qemu-x86/northbridge.c	(revision 3472)
+++ src/cpu/emulation/qemu-x86/northbridge.c	(working copy)
@@ -147,7 +147,7 @@
 {
 	int i;
 	for(i = 0; i < usecs; i++)
-		outb(i&0xff, 0x80);
+		inb(0x80);
 }
 
 
Index: src/pc80/udelay_io.c
===================================================================
--- src/pc80/udelay_io.c	(revision 3472)
+++ src/pc80/udelay_io.c	(working copy)
@@ -4,6 +4,6 @@
 {
 	int i;
 	for(i = 0; i < usecs; i++)
-		outb(i&0xff, 0x80);
+		inb(0x80);
 }
 
--
coreboot mailing list
[email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to