diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2008-11-12 03:57:32 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2008-11-12 03:57:32 +0000 |
commit | d42041043b95617244ffdb9150c5e2f2720a8a83 (patch) | |
tree | 71acbd2f8d8d51423d29ddbb2349ed23f77c3151 /apps/plugins/rockboy/cpu.c | |
parent | 68c686957b1b62671d727116e5c167cd8f080148 (diff) | |
download | rockbox-d42041043b95617244ffdb9150c5e2f2720a8a83.tar.gz rockbox-d42041043b95617244ffdb9150c5e2f2720a8a83.zip |
Add in the needed crt0.S code for the wakeup alarm also
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19094 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/cpu.c')
-rw-r--r-- | apps/plugins/rockboy/cpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/rockboy/cpu.c b/apps/plugins/rockboy/cpu.c index 1aca06f337..f1926fe421 100644 --- a/apps/plugins/rockboy/cpu.c +++ b/apps/plugins/rockboy/cpu.c | |||
@@ -333,8 +333,6 @@ void cpu_timers(int cnt) | |||
333 | 333 | ||
334 | static int cpu_idle(int max) | 334 | static int cpu_idle(int max) |
335 | { | 335 | { |
336 | int cnt, unit; | ||
337 | |||
338 | if (!(cpu.halt && IME)) return 0; | 336 | if (!(cpu.halt && IME)) return 0; |
339 | if (R_IF & R_IE) | 337 | if (R_IF & R_IE) |
340 | { | 338 | { |
@@ -353,6 +351,7 @@ static int cpu_idle(int max) | |||
353 | return max; | 351 | return max; |
354 | } | 352 | } |
355 | 353 | ||
354 | int cnt, unit; | ||
356 | /* Figure out when the next timer interrupt will happen */ | 355 | /* Figure out when the next timer interrupt will happen */ |
357 | unit = ((-R_TAC) & 3) << 1; | 356 | unit = ((-R_TAC) & 3) << 1; |
358 | cnt = (511 - cpu.tim + (1<<unit)) >> unit; | 357 | cnt = (511 - cpu.tim + (1<<unit)) >> unit; |