diff options
| author | Barry Wardell <rockbox@barrywardell.net> | 2007-03-10 12:41:52 +0000 |
|---|---|---|
| committer | Barry Wardell <rockbox@barrywardell.net> | 2007-03-10 12:41:52 +0000 |
| commit | 3631f11feab94aaa1f4da4d7ddb2ea3e746cb9ec (patch) | |
| tree | a2538fc84245da898f3167c8c6d9d086da03478e | |
| parent | de061e8a304dd0f74c46201cf1bb4f542cedd15a (diff) | |
| download | rockbox-3631f11feab94aaa1f4da4d7ddb2ea3e746cb9ec.zip rockbox-3631f11feab94aaa1f4da4d7ddb2ea3e746cb9ec.tar.gz rockbox-3631f11feab94aaa1f4da4d7ddb2ea3e746cb9ec.tar.bz2 rockbox-3631f11feab94aaa1f4da4d7ddb2ea3e746cb9ec.tar.xz | |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index de1672a..32a26a9 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); |