ARM/libroot: small workaround for crash

The whole system_time support will have to be revisited anyhow, since
the only base we have for timing is SoC specific, not ARM core specific :(
This commit is contained in:
Ithamar R. Adema 2012-11-21 15:28:01 +01:00
parent 7a66f06442
commit 379aaaab11

View File

@ -35,6 +35,6 @@ system_time(void)
{
uint64 timeBase = __arm_get_time_base();
uint32 cv = *sConversionFactor;
uint32 cv = sConversionFactor ? *sConversionFactor : 0;
return (timeBase >> 32) * cv + (((timeBase & 0xffffffff) * cv) >> 32);
}