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:
parent
7a66f06442
commit
379aaaab11
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user