aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-12-04 00:35:28 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-12-04 00:35:28 +0000
commit9b37da13903275333833954d91ac5ca6a1c99d4e (patch)
treeae2281ba016f2eef5e9a0a6fe73dc0a9c8421ee7 /sys
parentc3d15322a1177ae7a599171d621093f4da8c2ca5 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/include/segments.h2
-rw-r--r--sys/i386/include/segments.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/segments.h b/sys/amd64/include/segments.h
index 82e9d74f696f..d671e1230f7a 100644
--- a/sys/amd64/include/segments.h
+++ b/sys/amd64/include/segments.h
@@ -188,7 +188,7 @@ struct region_descriptor {
#define SEGEX_IDT 0x02 /* interrupt descriptor table */
#define SEGEX_TI 0x04 /* local descriptor table */
/* other bits are affected descriptor index */
-#define SEGEX_IDX(s) ((s)>>3)&0x1fff)
+#define SEGEX_IDX(s) (((s)>>3)&0x1fff)
/*
* Size of IDT table
diff --git a/sys/i386/include/segments.h b/sys/i386/include/segments.h
index 82e9d74f696f..d671e1230f7a 100644
--- a/sys/i386/include/segments.h
+++ b/sys/i386/include/segments.h
@@ -188,7 +188,7 @@ struct region_descriptor {
#define SEGEX_IDT 0x02 /* interrupt descriptor table */
#define SEGEX_TI 0x04 /* local descriptor table */
/* other bits are affected descriptor index */
-#define SEGEX_IDX(s) ((s)>>3)&0x1fff)
+#define SEGEX_IDX(s) (((s)>>3)&0x1fff)
/*
* Size of IDT table