summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/icu.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-09-18 23:08:56 +0000
committerbde <bde@FreeBSD.org>1994-09-18 23:08:56 +0000
commit11781e43fdb8fc1178d1190a77fceeef19fdb057 (patch)
treee0d5e68338c66baead0795685f03c4a928d512f0 /sys/i386/isa/icu.h
parenta15bf9b145684a97461699da306c542880a34df6 (diff)
downloadFreeBSD-src-11781e43fdb8fc1178d1190a77fceeef19fdb057.zip
FreeBSD-src-11781e43fdb8fc1178d1190a77fceeef19fdb057.tar.gz
Remove some unnecessary #includes.
Restore the simple leap year calculation as a macro and document it so that it doesn't become complicated again. The simple version works for all leap years covered by 32-bit time_t's. The complicated version doesn't work for all leap years covered by 64-bit time_t's since among other reasons, the solar system is not stable for long enough. Fix declarations. Nuke spinwait().
Diffstat (limited to 'sys/i386/isa/icu.h')
-rw-r--r--sys/i386/isa/icu.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/i386/isa/icu.h b/sys/i386/isa/icu.h
index 22c9066..8bafaf3 100644
--- a/sys/i386/isa/icu.h
+++ b/sys/i386/isa/icu.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)icu.h 5.6 (Berkeley) 5/9/91
- * $Id: icu.h,v 1.3 1994/04/02 07:00:40 davidg Exp $
+ * $Id: icu.h,v 1.4 1994/09/16 13:33:38 davidg Exp $
*/
/*
@@ -42,8 +42,8 @@
* W. Jolitz 8/89
*/
-#ifndef __ICU__
-#define __ICU__
+#ifndef _I386_ISA_ICU_H_
+#define _I386_ISA_ICU_H_
#ifndef LOCORE
@@ -52,17 +52,17 @@
*/
extern unsigned imen; /* interrupt mask enable */
-#define INTREN(s) {imen &= ~(s); SET_ICUS()}
-#define INTRDIS(s) {imen |= (s); SET_ICUS()}
+#define INTREN(s) (imen &= ~(s), SET_ICUS())
+#define INTRDIS(s) (imen |= (s), SET_ICUS())
#define INTRMASK(msk,s) (msk |= (s))
#if 0
-#define SET_ICUS() {outb(IO_ICU1 + 1, imen); outb(IU_ICU2 + 1, imen >> 8);}
+#define SET_ICUS() (outb(IO_ICU1 + 1, imen), outb(IU_ICU2 + 1, imen >> 8))
#else
/*
* XXX - IO_ICU* are defined in isa.h, not icu.h, and nothing much bothers to
* include isa.h, while too many things include icu.h.
*/
-#define SET_ICUS() {outb(0x21, imen); outb(0xa1, imen >> 8);}
+#define SET_ICUS() (outb(0x21, imen), outb(0xa1, imen >> 8))
#endif
#endif
@@ -94,4 +94,4 @@ extern unsigned imen; /* interrupt mask enable */
#define ICU_OFFSET 32 /* 0-31 are processor exceptions */
#define ICU_LEN 16 /* 32-47 are ISA interrupts */
-#endif __ICU__
+#endif /* !_I386_ISA_ICU_H_ */
OpenPOWER on IntegriCloud