diff options
Diffstat (limited to 'i386/i386/tss.h')
-rw-r--r-- | i386/i386/tss.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/i386/i386/tss.h b/i386/i386/tss.h index 0d02f70..ee0d612 100644 --- a/i386/i386/tss.h +++ b/i386/i386/tss.h @@ -29,6 +29,8 @@ #include <mach/inline.h> +#include <machine/io_perm.h> + /* * i386 Task State Segment */ @@ -66,6 +68,17 @@ struct i386_tss { bit map */ }; + +/* The structure extends the above TSS structure by an I/O permission bitmap + and the barrier. */ +struct task_tss + { + struct i386_tss tss; + unsigned char iopb[IOPB_BYTES]; + unsigned char barrier; +}; + + /* Load the current task register. */ MACH_INLINE void ltr(unsigned short segment) |