AnsweredAssumed Answered

clock() on SC584's ARM core

Question asked by rahu on Feb 11, 2016
Latest reply on Mar 7, 2016 by Harshit.Gaharwar


I'm trying to use the clock-function from the C/C++ library on the ARM-Core of the SC584. Unfortunately it returns 0x10 all the time. Debugging into this I came to the instruction svc 171 in rdi_times - a supervisor call which I can't find in any documentation?


Backtrace is:


<rdi_times>() at 0x20092adc 

<_times + 0xc>() at 0x20091970 

<clock + 0x14>() at 0x20090eec


The clock function is working fine on Sharc cores.


Can you give me some hints why clock() isn't working on CortexA5? What is svc 171 doing?


Thanks in advance,