Use inb instead of outb for delays. v2 has already been converted in
r3509 which was
Signed-off-by: Stefan Reinauer <[EMAIL PROTECTED]>
Acked-by: Carl-Daniel Hailfinger <[EMAIL PROTECTED]>

I'm tempted to do the same here, but with signoff and ack switched.

Index: corebootv3-stuff3/arch/x86/udelay_io.c
===================================================================
--- corebootv3-stuff3/arch/x86/udelay_io.c      (Revision 798)
+++ corebootv3-stuff3/arch/x86/udelay_io.c      (Arbeitskopie)
@@ -23,6 +23,7 @@
 void udelay(unsigned int usecs)
 {
        unsigned int i;
+       /* let's hope this is not optimized out */
        for (i = 0; i < usecs; i++)
-               outb(i & 0xff, 0x80);
+               (void) inb(0x80);
 }


-- 
http://www.hailfinger.org/


--
coreboot mailing list
[email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to