j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Fri May 3 23:45:00 2013 New Revision: 1134 URL: http://tracker.coreboot.org/trac/openbios/changeset/1134
Log: 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
Modified: trunk/openbios-devel/arch/sparc64/openbios.c
Modified: trunk/openbios-devel/arch/sparc64/openbios.c ============================================================================== --- trunk/openbios-devel/arch/sparc64/openbios.c Sat Apr 27 13:42:18 2013 (r1133) +++ trunk/openbios-devel/arch/sparc64/openbios.c Fri May 3 23:45:00 2013 (r1134) @@ -547,6 +547,9 @@
void udelay(unsigned int usecs) { + volatile int i; + + for (i = 0; i < usecs * 100; i++); }
static void init_memory(void)