![]() ![]() | ![]() |
File: [local] / sys / arch / armish / stand / boot / time.c (download)
Revision 1.1, Tue Mar 4 16:08:53 2008 UTC (16 years, 4 months ago) by nbrk
Initial revision |
#include <sys/types.h> #include "libsa.h" time_t getsecs(void) { uint32_t count; __asm volatile ("mrc p6, 0, %0, c3, c1, 0" : "=r" (count)); return ((0xffffffff - count) / 12500000); }