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:
@@ -35,6 +35,6 @@ system_time(void)
|
|||||||
{
|
{
|
||||||
uint64 timeBase = __arm_get_time_base();
|
uint64 timeBase = __arm_get_time_base();
|
||||||
|
|
||||||
uint32 cv = *sConversionFactor;
|
uint32 cv = sConversionFactor ? *sConversionFactor : 0;
|
||||||
return (timeBase >> 32) * cv + (((timeBase & 0xffffffff) * cv) >> 32);
|
return (timeBase >> 32) * cv + (((timeBase & 0xffffffff) * cv) >> 32);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user