diff options
Diffstat (limited to 'lib_m68k/time.c')
-rw-r--r-- | lib_m68k/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_m68k/time.c b/lib_m68k/time.c index e2c1b06..1d6d297 100644 --- a/lib_m68k/time.c +++ b/lib_m68k/time.c @@ -135,7 +135,7 @@ void udelay(unsigned long usec) uint tmp; timerp = (volatile unsigned short *) (CFG_MBAR + MCFTIMER_BASE3); - + while (usec > 0) { if (usec > 65000) tmp = 65000; @@ -150,7 +150,7 @@ void udelay(unsigned long usec) timerp[MCFTIMER_PCSR] = (5 << 8) | MCFTIMER_PCSR_EN | MCFTIMER_PCSR_OVW; - timerp[MCFTIMER_PMR] = tmp; + timerp[MCFTIMER_PMR] = tmp; while (timerp[MCFTIMER_PCNTR] > 0); } } |