We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 021babe + 611593b commit f5db5e0Copy full SHA for f5db5e0
ee/kernel/src/timer.c
@@ -284,7 +284,7 @@ void SetNextComp(u64 time_now)
284
while (timer_current != NULL)
285
{
286
a1 = timer_current->timer_schedule + timer_current->timer_base_time - timer_current->timer_base_count;
287
- if (a1 < (a0 + 0x7333))
+ if (a1 < (a0 + 0x733))
288
289
a0 = a1;
290
}
@@ -294,9 +294,9 @@ void SetNextComp(u64 time_now)
294
295
timer_current = timer_current->timer_next;
296
297
- if ((s64)(a0 - time_now) < (s64)0x7333)
+ if (a0 < (time_now + 0x733))
298
299
- SetT2_COMP((*T2_COUNT) + (0x7333 >> (((*T2_MODE) & 3) << 2)));
+ SetT2_COMP((*T2_COUNT) + (0x733 >> (((*T2_MODE) & 3) << 2)));
300
SetT2_MODE((*T2_MODE) & (~(1 << 11)));
301
302
else
0 commit comments