diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-04-17 03:44:53 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-04-17 03:44:53 +0000 |
commit | 9caf1446e5026d25eae3db39219e81c52b01e6a2 (patch) | |
tree | dfe8884cb204cae843b5f61b35f61ca7f919376b /sys/arch/i386/include | |
parent | 97987029292f8c61ef09b7d10f0d8d9f1b3fa820 (diff) |
Do interrupt time accounting by running interrupt handlers with a seperate
code segment selector (otherwise identical to the standard kernel code
selector); idea by Dave Richards <richards@zso.dec.com>
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/segments.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/i386/include/segments.h b/sys/arch/i386/include/segments.h index 4558ccce6aa..4aa542dc009 100644 --- a/sys/arch/i386/include/segments.h +++ b/sys/arch/i386/include/segments.h @@ -130,7 +130,7 @@ struct region_descriptor { extern union descriptor gdt[], ldt[]; extern struct gate_descriptor idt[]; -void setgate __P((struct gate_descriptor *, void *, int, int, int)); +void setgate __P((struct gate_descriptor *, void *, int, int, int, int)); void setregion __P((struct region_descriptor *, void *, size_t)); void setsegment __P((struct segment_descriptor *, void *, size_t, int, int, int, int)); @@ -217,10 +217,11 @@ void setsegment __P((struct segment_descriptor *, void *, size_t, int, int, #define GLDT_SEL 3 /* Default LDT descriptor */ #define GUCODE_SEL 4 /* User code descriptor */ #define GUDATA_SEL 5 /* User data descriptor */ -#define GAPM32CODE_SEL 6 -#define GAPM16CODE_SEL 7 -#define GAPMDATA_SEL 8 -#define NGDT 9 +#define GAPM32CODE_SEL 6 /* 32 bit APM code descriptor */ +#define GAPM16CODE_SEL 7 /* 16 bit APM code descriptor */ +#define GAPMDATA_SEL 8 /* APM data descriptor */ +#define GICODE_SEL 9 /* Interrupt code descriptor (same as Kernel code) */ +#define NGDT 10 /* * Entries in the Local Descriptor Table (LDT) |