From 8e65adb67d9d85e920554af7b083b3d76b885688 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 13 Aug 2008 12:16:15 +0000 Subject: Fix outb to 0x80 delay functions to use inb instead (fixes excessive post codes in a couple of occurences) Signed-off-by: Stefan Reinauer Acked-by: Carl-Daniel Hailfinger git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3509 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/emulation/qemu-x86/northbridge.c | 2 +- src/pc80/udelay_io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu/emulation/qemu-x86/northbridge.c b/src/cpu/emulation/qemu-x86/northbridge.c index 694df64ec6..ada22fe982 100644 --- a/src/cpu/emulation/qemu-x86/northbridge.c +++ b/src/cpu/emulation/qemu-x86/northbridge.c @@ -147,7 +147,7 @@ void udelay(int usecs) { int i; for(i = 0; i < usecs; i++) - outb(i&0xff, 0x80); + inb(0x80); } diff --git a/src/pc80/udelay_io.c b/src/pc80/udelay_io.c index 870af079cf..a67b5a1986 100644 --- a/src/pc80/udelay_io.c +++ b/src/pc80/udelay_io.c @@ -4,6 +4,6 @@ void udelay(int usecs) { int i; for(i = 0; i < usecs; i++) - outb(i&0xff, 0x80); + inb(0x80); } -- cgit v1.2.3