X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Fpowerpc%2Flib%2Ftime.c;h=34633c3f1ef078c528e16ea5481b7d348a03163b;hb=24e50461c07953d43bf8b3500f3f8433cf10929a;hp=29099612db4f4d46d243eed2546a98d997c6597f;hpb=a47a12becf66f02a56da91c161e2edb625e9f20c;p=u-boot diff --git a/arch/powerpc/lib/time.c b/arch/powerpc/lib/time.c index 29099612db..34633c3f1e 100644 --- a/arch/powerpc/lib/time.c +++ b/arch/powerpc/lib/time.c @@ -78,6 +78,8 @@ unsigned long ticks2usec(unsigned long ticks) int init_timebase (void) { + unsigned long temp; + #if defined(CONFIG_5xx) || defined(CONFIG_8xx) volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR; @@ -86,7 +88,8 @@ int init_timebase (void) #endif /* reset */ - asm ("li 3,0 ; mttbu 3 ; mttbl 3 ;"); + asm volatile("li %0,0 ; mttbu %0 ; mttbl %0;" + : "=&r"(temp) ); #if defined(CONFIG_5xx) || defined(CONFIG_8xx) /* enable */