From 3631f11feab94aaa1f4da4d7ddb2ea3e746cb9ec Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Sat, 10 Mar 2007 12:41:52 +0000 Subject: 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 --- firmware/export/system.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit