diff --git a/sys/mips/mips/tick.c b/sys/mips/mips/tick.c index d767950c24e7..42f34a7e9bad 100644 --- a/sys/mips/mips/tick.c +++ b/sys/mips/mips/tick.c @@ -223,9 +223,9 @@ DELAY(int n) /* Check to see if the timer has wrapped around. */ if (cur < last) - delta += (cur + (cycles_per_hz - last)); + delta += cur + (0xffffffff - last) + 1; else - delta += (cur - last); + delta += cur - last; last = cur;