SPARC64: Add trivial implementation of udelay()

The OpenBIOS IDE driver calls udelay() in order to wait for IDE transfers
to complete. Without an implementation of udelay(), the IDE timeout is too
low causing sporadic errors during periods of high I/O activity. As reported
by Artyom Tarasenko.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1134 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland 2013-05-03 21:45:00 +00:00
parent 6341e17da7
commit f47ebf4904
1 changed files with 3 additions and 0 deletions

View File

@ -547,6 +547,9 @@ void setup_timers(void)
void udelay(unsigned int usecs)
{
volatile int i;
for (i = 0; i < usecs * 100; i++);
}
static void init_memory(void)