summaryrefslogtreecommitdiff
path: root/firmware/kernel.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-07 23:07:19 +0000
committerDave Chapman <dave@dchapman.com>2005-11-07 23:07:19 +0000
commit77372d12189c70cb810a7e88bc2ee7a56f64646c (patch)
tree057d0d474042874850b6262b78f80d2335cb0629 /firmware/kernel.c
parent3cd5c646d03089df8d58b773d4a1bc8323021adc (diff)
downloadrockbox-77372d12189c70cb810a7e88bc2ee7a56f64646c.zip
rockbox-77372d12189c70cb810a7e88bc2ee7a56f64646c.tar.gz
rockbox-77372d12189c70cb810a7e88bc2ee7a56f64646c.tar.bz2
rockbox-77372d12189c70cb810a7e88bc2ee7a56f64646c.tar.xz
Initial commit of work-in-progress iPod port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r--firmware/kernel.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c
index 9af4566..215d5de 100644
--- a/firmware/kernel.c
+++ b/firmware/kernel.c
@@ -25,7 +25,9 @@
#include "system.h"
#include "panic.h"
+#if (CONFIG_CPU != PP5020)
long current_tick = 0;
+#endif
static void (*tick_funcs[MAX_NUM_TICK_TASKS])(void);
@@ -65,6 +67,11 @@ void sleep(int ticks)
void yield(void)
{
+#if CONFIG_CPU == PP5020
+ /* Threading not yet implemented */
+ #warning Enable yield()
+ return;
+#endif
switch_thread();
wake_up_thread();
}
@@ -315,6 +322,12 @@ void tick_start(unsigned int interval_in_ms)
IMR0 |= (1<<2);
}
+#elif CONFIG_CPU == PP5020
+
+void tick_start(unsigned int interval_in_ms) {
+#warning Implement tick_start
+}
+
#endif
int tick_add_task(void (*f)(void))