diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2002-09-26 05:07:41 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2002-09-26 05:07:41 +0000 |
| commit | bbe04fe2ca1a4f393e00d49875a30693fbcaa32d (patch) | |
| tree | 1ddb2b720824d2941b475e2c6655c83d3b0d069f | |
| parent | 6423c9433cee8b5abfe8a671ab0342e3359ec96f (diff) | |
Notes
| -rw-r--r-- | sys/amd64/include/segments.h | 20 | ||||
| -rw-r--r-- | sys/i386/include/segments.h | 20 |
2 files changed, 0 insertions, 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 |
