From bbe04fe2ca1a4f393e00d49875a30693fbcaa32d Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 26 Sep 2002 05:07:41 +0000 Subject: [PATCH] ISMEMSDP(), IS286GDP(), IS386GDP(), ISGDP(), ISSDP() and ISSYSSDP() are not used anywhere anymore. --- sys/amd64/include/segments.h | 20 -------------------- sys/i386/include/segments.h | 20 -------------------- 2 files changed, 40 deletions(-) diff --git a/sys/amd64/include/segments.h b/sys/amd64/include/segments.h index 6d09e1e6ecff..bcbf2fbb92b6 100644 --- a/sys/amd64/include/segments.h +++ b/sys/amd64/include/segments.h @@ -133,26 +133,6 @@ union descriptor { #define SDT_MEMERC 30 /* memory execute read conforming */ #define SDT_MEMERAC 31 /* memory execute read accessed conforming */ -/* is memory segment descriptor pointer ? */ -#define ISMEMSDP(s) ((s->d_type) >= SDT_MEMRO && (s->d_type) <= SDT_MEMERAC) - -/* is 286 gate descriptor pointer ? */ -#define IS286GDP(s) (((s->d_type) >= SDT_SYS286CGT \ - && (s->d_type) < SDT_SYS286TGT)) - -/* is 386 gate descriptor pointer ? */ -#define IS386GDP(s) (((s->d_type) >= SDT_SYS386CGT \ - && (s->d_type) < SDT_SYS386TGT)) - -/* is gate descriptor pointer ? */ -#define ISGDP(s) (IS286GDP(s) || IS386GDP(s)) - -/* is segment descriptor pointer ? */ -#define ISSDP(s) (ISMEMSDP(s) || !ISGDP(s)) - -/* is system segment descriptor pointer ? */ -#define ISSYSSDP(s) (!ISMEMSDP(s) && !ISGDP(s)) - /* * Software definitions are in this convenient format, * which are translated into inconvenient segment descriptors diff --git a/sys/i386/include/segments.h b/sys/i386/include/segments.h index 6d09e1e6ecff..bcbf2fbb92b6 100644 --- a/sys/i386/include/segments.h +++ b/sys/i386/include/segments.h @@ -133,26 +133,6 @@ union descriptor { #define SDT_MEMERC 30 /* memory execute read conforming */ #define SDT_MEMERAC 31 /* memory execute read accessed conforming */ -/* is memory segment descriptor pointer ? */ -#define ISMEMSDP(s) ((s->d_type) >= SDT_MEMRO && (s->d_type) <= SDT_MEMERAC) - -/* is 286 gate descriptor pointer ? */ -#define IS286GDP(s) (((s->d_type) >= SDT_SYS286CGT \ - && (s->d_type) < SDT_SYS286TGT)) - -/* is 386 gate descriptor pointer ? */ -#define IS386GDP(s) (((s->d_type) >= SDT_SYS386CGT \ - && (s->d_type) < SDT_SYS386TGT)) - -/* is gate descriptor pointer ? */ -#define ISGDP(s) (IS286GDP(s) || IS386GDP(s)) - -/* is segment descriptor pointer ? */ -#define ISSDP(s) (ISMEMSDP(s) || !ISGDP(s)) - -/* is system segment descriptor pointer ? */ -#define ISSYSSDP(s) (!ISMEMSDP(s) && !ISGDP(s)) - /* * Software definitions are in this convenient format, * which are translated into inconvenient segment descriptors