1
0
Fork 0
forked from len0rd/rockbox

Fix red builds and make udelay actually work as it should again.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12703 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2007-03-10 12:41:52 +00:00
parent de061e8a30
commit 3631f11fea

View file

@ -22,6 +22,7 @@
#include "cpu.h" #include "cpu.h"
#include "stdbool.h" #include "stdbool.h"
#include "kernel.h"
extern void system_reboot (void); extern void system_reboot (void);
extern void system_init(void); extern void system_init(void);
@ -40,7 +41,7 @@ extern unsigned int ipod_hw_rev;
static inline void udelay(unsigned usecs) static inline void udelay(unsigned usecs)
{ {
unsigned stop = USEC_TIMER + usecs; unsigned stop = USEC_TIMER + usecs;
while (TIME_AFTER(USEC_TIMER, stop)); while (TIME_BEFORE(USEC_TIMER, stop));
} }
unsigned int current_core(void); unsigned int current_core(void);