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