This website requires JavaScript.
Explore
Help
Register
Sign in
GNUBoot
/
coreboot-kgpe-d16
Watch
2
Star
0
Fork
You've already forked coreboot-kgpe-d16
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
56c51bd120
coreboot-kgpe-d16
/
src
/
pc80
/
udelay_io.c
10 lines
99 B
C
Raw
Normal View
History
Unescape
Escape
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
2005-12-04 18:50:32 +01:00
#
include
<arch/io.h>
void
udelay
(
int
usecs
)
{
int
i
;
for
(
i
=
0
;
i
<
usecs
;
i
+
+
)
Fix outb to 0x80 delay functions to use inb instead (fixes excessive post codes in a couple of occurences) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3509 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2008-08-13 14:16:15 +02:00
inb
(
0x80
)
;
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
2005-12-04 18:50:32 +01:00
}
Reference in a new issue
Copy permalink