summaryrefslogtreecommitdiff
path: root/src/pc80/udelay_io.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@openbios.org>2005-12-04 17:50:32 +0000
committerStefan Reinauer <stepan@openbios.org>2005-12-04 17:50:32 +0000
commit453dfdfdafbc2d10ec9289699a22e8c4fd8c2ad6 (patch)
treeed7e246a34073a368c8195bd0748fa9daffb4a01 /src/pc80/udelay_io.c
parenta09ab6dc531aa7d14706b6a912e5feb476426ab2 (diff)
downloadcoreboot-453dfdfdafbc2d10ec9289699a22e8c4fd8c2ad6.tar.xz
implement io based udelay function for all mainboards that lack an apic
timer (or just failed otherwise due to missing udelay) git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2131 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/pc80/udelay_io.c')
-rw-r--r--src/pc80/udelay_io.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pc80/udelay_io.c b/src/pc80/udelay_io.c
new file mode 100644
index 0000000000..870af079cf
--- /dev/null
+++ b/src/pc80/udelay_io.c
@@ -0,0 +1,9 @@
+#include <arch/io.h>
+
+void udelay(int usecs)
+{
+ int i;
+ for(i = 0; i < usecs; i++)
+ outb(i&0xff, 0x80);
+}
+