On 06/06/2014 12:25 PM, Michael Van Canneyt wrote:

if you do a vDSO implementation, please do not limit the implementation to the clock_gettime, but implement all calls that support it.


I do see your point.

Right now I extracted (most of) the hardware depending stuff (i.e. the performance timer access including calibration) out of EpikTimer.pas in a new not class-driven unit EpikTimerBase that is used by EpikTimer and in the end should be usable without EpikTimer.pas.

Right now it just accesses  the X86 performance register directly.

This unit could use a vDSO Unit that contains access via __vdso_clock_gettime().

Here other such functions could be places (e.g. for x86 and x86/64:: __vdso_getcpu(), __vdso_gettimeofday() and __vdso_time() ).

-Michael

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to