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
This commit is contained in:
9
src/pc80/udelay_io.c
Normal file
9
src/pc80/udelay_io.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <arch/io.h>
|
||||
|
||||
void udelay(int usecs)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < usecs; i++)
|
||||
outb(i&0xff, 0x80);
|
||||
}
|
||||
|
Reference in New Issue
Block a user