1 /* portable clock code */ 2 #include "include.h" 3 4 ulong intrcount[MAXMACH]; 5 6 void hzclock(void)7hzclock(void) 8 { 9 m->ticks++; 10 dcflush(PTR2UINT(&m->ticks), sizeof m->ticks); 11 } 12 13 void timerintr(Ureg *)14timerintr(Ureg *) 15 { 16 intrcount[m->machno]++; 17 hzclock(); 18 } 19 20 void timersinit(void)21timersinit(void) 22 { 23 } 24