summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-09-08 06:40:58 +0000
committerpeter <peter@FreeBSD.org>1997-09-08 06:40:58 +0000
commit9a9d679136b336c78faf890ba54ca9081966e345 (patch)
treea1c563f394db4777fe434f98029459220be24557 /sys/amd64
parent12f8b6b6e0318714616ab4dfe8b4d89cb2ed67db (diff)
downloadFreeBSD-src-9a9d679136b336c78faf890ba54ca9081966e345.zip
FreeBSD-src-9a9d679136b336c78faf890ba54ca9081966e345.tar.gz
Change an assemble-time divide into a shift. Under binutils-2.8 gas in elf
mode, the slash is a comment leader, while under non-elf it is a divide symbol (what a concept! :-). Theoretically, #APP/#NO_APP can change this but that doesn't seem to mesh too well with macros and line continuation.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/isa/atpic_vector.S4
-rw-r--r--sys/amd64/isa/icu_vector.S4
-rw-r--r--sys/amd64/isa/icu_vector.s4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/amd64/isa/atpic_vector.S b/sys/amd64/isa/atpic_vector.S
index 9722f6b..ee3e079 100644
--- a/sys/amd64/isa/atpic_vector.S
+++ b/sys/amd64/isa/atpic_vector.S
@@ -1,6 +1,6 @@
/*
* from: vector.s, 386BSD 0.1 unknown origin
- * $Id: icu_vector.s,v 1.2 1997/05/31 08:59:51 peter Exp $
+ * $Id: icu_vector.s,v 1.3 1997/07/24 03:24:57 fsmp Exp $
*/
/*
@@ -16,7 +16,7 @@
#define ICU_EOI 0x20 /* XXX - define elsewhere */
#define IRQ_BIT(irq_num) (1 << ((irq_num) % 8))
-#define IRQ_BYTE(irq_num) ((irq_num) / 8)
+#define IRQ_BYTE(irq_num) ((irq_num) >> 3)
#ifdef AUTO_EOI_1
#define ENABLE_ICU1 /* use auto-EOI to reduce i/o */
diff --git a/sys/amd64/isa/icu_vector.S b/sys/amd64/isa/icu_vector.S
index 9722f6b..ee3e079 100644
--- a/sys/amd64/isa/icu_vector.S
+++ b/sys/amd64/isa/icu_vector.S
@@ -1,6 +1,6 @@
/*
* from: vector.s, 386BSD 0.1 unknown origin
- * $Id: icu_vector.s,v 1.2 1997/05/31 08:59:51 peter Exp $
+ * $Id: icu_vector.s,v 1.3 1997/07/24 03:24:57 fsmp Exp $
*/
/*
@@ -16,7 +16,7 @@
#define ICU_EOI 0x20 /* XXX - define elsewhere */
#define IRQ_BIT(irq_num) (1 << ((irq_num) % 8))
-#define IRQ_BYTE(irq_num) ((irq_num) / 8)
+#define IRQ_BYTE(irq_num) ((irq_num) >> 3)
#ifdef AUTO_EOI_1
#define ENABLE_ICU1 /* use auto-EOI to reduce i/o */
diff --git a/sys/amd64/isa/icu_vector.s b/sys/amd64/isa/icu_vector.s
index 9722f6b..ee3e079 100644
--- a/sys/amd64/isa/icu_vector.s
+++ b/sys/amd64/isa/icu_vector.s
@@ -1,6 +1,6 @@
/*
* from: vector.s, 386BSD 0.1 unknown origin
- * $Id: icu_vector.s,v 1.2 1997/05/31 08:59:51 peter Exp $
+ * $Id: icu_vector.s,v 1.3 1997/07/24 03:24:57 fsmp Exp $
*/
/*
@@ -16,7 +16,7 @@
#define ICU_EOI 0x20 /* XXX - define elsewhere */
#define IRQ_BIT(irq_num) (1 << ((irq_num) % 8))
-#define IRQ_BYTE(irq_num) ((irq_num) / 8)
+#define IRQ_BYTE(irq_num) ((irq_num) >> 3)
#ifdef AUTO_EOI_1
#define ENABLE_ICU1 /* use auto-EOI to reduce i/o */
OpenPOWER on IntegriCloud