summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/cpu.c')
-rw-r--r--apps/plugins/rockboy/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/rockboy/cpu.c b/apps/plugins/rockboy/cpu.c
index f1926fe421..1aca06f337 100644
--- a/apps/plugins/rockboy/cpu.c
+++ b/apps/plugins/rockboy/cpu.c
@@ -333,6 +333,8 @@ void cpu_timers(int cnt)
333 333
334static int cpu_idle(int max) 334static int cpu_idle(int max)
335{ 335{
336 int cnt, unit;
337
336 if (!(cpu.halt && IME)) return 0; 338 if (!(cpu.halt && IME)) return 0;
337 if (R_IF & R_IE) 339 if (R_IF & R_IE)
338 { 340 {
@@ -351,7 +353,6 @@ static int cpu_idle(int max)
351 return max; 353 return max;
352 } 354 }
353 355
354 int cnt, unit;
355 /* Figure out when the next timer interrupt will happen */ 356 /* Figure out when the next timer interrupt will happen */
356 unit = ((-R_TAC) & 3) << 1; 357 unit = ((-R_TAC) & 3) << 1;
357 cnt = (511 - cpu.tim + (1<<unit)) >> unit; 358 cnt = (511 - cpu.tim + (1<<unit)) >> unit;