diff options
Diffstat (limited to 'firmware/export/system.h')
-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 de1672ae8e..32a26a9bf5 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include "cpu.h" | 23 | #include "cpu.h" |
24 | #include "stdbool.h" | 24 | #include "stdbool.h" |
25 | #include "kernel.h" | ||
25 | 26 | ||
26 | extern void system_reboot (void); | 27 | extern void system_reboot (void); |
27 | extern void system_init(void); | 28 | extern void system_init(void); |
@@ -40,7 +41,7 @@ extern unsigned int ipod_hw_rev; | |||
40 | static inline void udelay(unsigned usecs) | 41 | static inline void udelay(unsigned usecs) |
41 | { | 42 | { |
42 | unsigned stop = USEC_TIMER + usecs; | 43 | unsigned stop = USEC_TIMER + usecs; |
43 | while (TIME_AFTER(USEC_TIMER, stop)); | 44 | while (TIME_BEFORE(USEC_TIMER, stop)); |
44 | } | 45 | } |
45 | 46 | ||
46 | unsigned int current_core(void); | 47 | unsigned int current_core(void); |