xref: /csrg-svn/sys/tahoe/include/clock.h (revision 25678)
1*25678Ssam /*	clock.h	1.2	86/01/05	*/
224011Ssam 
324011Ssam #define	SECDAY		((unsigned)(24*60*60))		/* seconds per day */
424011Ssam #define	SECYR		((unsigned)(365*SECDAY))	/* per common year */
524011Ssam 
624011Ssam #define	YRREF		1970
724011Ssam #define	LEAPYEAR(year)	((year)%4==0)	/* good till time becomes negative */
824011Ssam 
924011Ssam /*
1024011Ssam  * Software clock is software interrupt level 8
1124011Ssam  */
12*25678Ssam #define	setsoftclock()	mtpr(SIRR, 0x8)
13