date and time created 82/11/09 11:27:11 by sam
[unix-history] / usr / src / sys / vax / include / clock.h
index f734d0c..b204953 100644 (file)
@@ -1,4 +1,4 @@
-/*     clock.h 4.5     81/02/23        */
+/*     clock.h 4.8     82/10/31        */
 
 /*
  * VAX clock registers
 
 /*
  * VAX clock registers
 #define        LEAPYEAR(year)  ((year)%4==0)   /* good till time becomes negative */
 
 /*
 #define        LEAPYEAR(year)  ((year)%4==0)   /* good till time becomes negative */
 
 /*
- * Start a 60 HZ clock.
+ * Has the time-of-day clock wrapped around?
  */
  */
-#define        clkstart() {\
-       mtpr(NICR, -16667);     /* 16.667 milli-seconds */\
-       mtpr(ICCS, ICCS_RUN+ICCS_IE+ICCS_TRANS+ICCS_INT+ICCS_ERR);\
-}
-#define        clkreld()       mtpr(ICCS, ICCS_RUN+ICCS_IE+ICCS_INT+ICCS_ERR)
-
 #define        clkwrap()       (((unsigned)mfpr(TODR) - TODRZERO)/100 > SECYR+SECDAY)
 
 /*
 #define        clkwrap()       (((unsigned)mfpr(TODR) - TODRZERO)/100 > SECYR+SECDAY)
 
 /*
- * Software clock is software interrupt level 8
+ * Software clock is software interrupt level 8,
+ * implemented as mtpr(SIRR, 0x8) in asm.sed.
  */
  */
-#define        setsoftclock()  mtpr(SIRR, 0x8)