summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-03-10 12:41:52 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-03-10 12:41:52 +0000
commit3631f11feab94aaa1f4da4d7ddb2ea3e746cb9ec (patch)
treea2538fc84245da898f3167c8c6d9d086da03478e
parentde061e8a304dd0f74c46201cf1bb4f542cedd15a (diff)
downloadrockbox-3631f11feab94aaa1f4da4d7ddb2ea3e746cb9ec.tar.gz
rockbox-3631f11feab94aaa1f4da4d7ddb2ea3e746cb9ec.zip
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
-rw-r--r--firmware/export/system.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index de1672ae8e..32a26a9bf5 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -22,6 +22,7 @@
#include "cpu.h"
#include "stdbool.h"
+#include "kernel.h"
extern void system_reboot (void);
extern void system_init(void);
@@ -40,7 +41,7 @@ extern unsigned int ipod_hw_rev;
static inline void udelay(unsigned usecs)
{
unsigned stop = USEC_TIMER + usecs;
- while (TIME_AFTER(USEC_TIMER, stop));
+ while (TIME_BEFORE(USEC_TIMER, stop));
}
unsigned int current_core(void);