Return to time.c CVS log | Up to [local] / sys / arch / armish / stand / boot |
1.1 nbrk 1: #include <sys/types.h> 2: 3: #include "libsa.h" 4: 5: time_t 6: getsecs(void) 7: { 8: uint32_t count; 9: 10: __asm volatile ("mrc p6, 0, %0, c3, c1, 0" : "=r" (count)); 11: return ((0xffffffff - count) / 12500000); 12: }