summaryrefslogtreecommitdiff
path: root/src/pc80/udelay_io.c
diff options
context:
space:
mode:
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);
+}
+