diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-04-24 20:08:28 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-04-24 20:08:28 +0000 |
commit | 95167e01773dcfe8e5c1b356cfa1ea4b3a55441b (patch) | |
tree | 8b5312c5f1d1ecc8231bf8e14a1eb1678474bf8a /firmware/kernel.c | |
parent | 46b492861152af9b91d3ab65ef0e5e14c876c3fc (diff) | |
download | rockbox-95167e01773dcfe8e5c1b356cfa1ea4b3a55441b.tar.gz rockbox-95167e01773dcfe8e5c1b356cfa1ea4b3a55441b.zip |
Commit whole Creative Zen Vision:M target tree + all related firmware/
changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17241 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r-- | firmware/kernel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c index f86a188d05..4ccf2bbe17 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c | |||
@@ -435,6 +435,11 @@ void sleep(int ticks) | |||
435 | unsigned stop = USEC_TIMER + ticks * (1000000/HZ); | 435 | unsigned stop = USEC_TIMER + ticks * (1000000/HZ); |
436 | while (TIME_BEFORE(USEC_TIMER, stop)) | 436 | while (TIME_BEFORE(USEC_TIMER, stop)) |
437 | switch_thread(); | 437 | switch_thread(); |
438 | #elif defined(CREATIVE_ZVM) && defined(BOOTLOADER) | ||
439 | // hacky.. | ||
440 | long sleep_ticks = current_tick + ticks + 1; | ||
441 | while (sleep_ticks > current_tick) | ||
442 | switch_thread(); | ||
438 | #else | 443 | #else |
439 | disable_irq(); | 444 | disable_irq(); |
440 | sleep_thread(ticks); | 445 | sleep_thread(ticks); |