summaryrefslogtreecommitdiff
path: root/firmware/export/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/kernel.h')
-rw-r--r--firmware/export/kernel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h
index 5cd3c6d..89c56da 100644
--- a/firmware/export/kernel.h
+++ b/firmware/export/kernel.h
@@ -66,10 +66,10 @@ struct mutex
};
/* global tick variable */
-#if (CONFIG_CPU == PP5020) && defined(BOOTLOADER)
+#if ((CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)) && defined(BOOTLOADER)
/* We don't enable interrupts in the iPod bootloader, so we need to fake
the current_tick variable */
-#define current_tick ((*((volatile long*)0x60005010))/10000)
+#define current_tick (USEC_TIMER/10000)
#else
extern long current_tick;
#endif