From 81c02e7686be08a154a0517f43e4263403dd0e59 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 19 Feb 2010 12:29:31 -0800 Subject: [PATCH] kernel - Fix (unused) SEGEX_IDX macro * Fix missing paren in the macro. The macro is not used but I'm going to keep it around anyway. Submitted-by: Mohd Farid Kamarudin --- sys/cpu/i386/include/segments.h | 2 +- sys/cpu/x86_64/include/segments.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cpu/i386/include/segments.h b/sys/cpu/i386/include/segments.h index 4e19db212e..adfe64832e 100644 --- a/sys/cpu/i386/include/segments.h +++ b/sys/cpu/i386/include/segments.h @@ -199,7 +199,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. Theoretically we only need to cover past 0x81 diff --git a/sys/cpu/x86_64/include/segments.h b/sys/cpu/x86_64/include/segments.h index b8dccf1e45..06408c3028 100644 --- a/sys/cpu/x86_64/include/segments.h +++ b/sys/cpu/x86_64/include/segments.h @@ -210,7 +210,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 the IDT table. Theoretically we only need to cover past 0x81 -- 2.41.0