summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-x86
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/emulation/qemu-x86')
-rw-r--r--src/mainboard/emulation/qemu-x86/auto.c11
-rw-r--r--src/mainboard/emulation/qemu-x86/rom.c10
2 files changed, 1 insertions, 20 deletions
diff --git a/src/mainboard/emulation/qemu-x86/auto.c b/src/mainboard/emulation/qemu-x86/auto.c
index 7cf4012134..fb92ac946b 100644
--- a/src/mainboard/emulation/qemu-x86/auto.c
+++ b/src/mainboard/emulation/qemu-x86/auto.c
@@ -11,16 +11,7 @@
#include "pc80/mc146818rtc_early.c"
#include "pc80/serial.c"
#include "arch/i386/lib/console.c"
-
-/*
- */
-void udelay(int usecs)
-{
- int i;
- for(i = 0; i < usecs; i++)
- outb(i&0xff, 0x80);
-}
-
+#include "pc80/udelay_io.c"
#include "lib/delay.c"
#include "cpu/x86/lapic/boot_cpu.c"
diff --git a/src/mainboard/emulation/qemu-x86/rom.c b/src/mainboard/emulation/qemu-x86/rom.c
index 65c2644599..de1b162fd4 100644
--- a/src/mainboard/emulation/qemu-x86/rom.c
+++ b/src/mainboard/emulation/qemu-x86/rom.c
@@ -7,15 +7,6 @@
#include <console/console.h>
#include <cbfs.h>
-/*
- */
-void udelay(int usecs)
-{
- int i;
- for(i = 0; i < usecs; i++)
- outb(i&0xff, 0x80);
-}
-
void main(void)
{
int i;
@@ -26,5 +17,4 @@ void main(void)
uart_init();
start_address = cbfs_load_stage("fallback/coreboot_ram");
start_address();
-
}