protect.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GDT_SIZE   (FIRST_LDT_INDEX + NR_TASKS + NR_PROCS)
#define IDT_SIZE   (IRQ8_VECTOR + 8)
#define LDT_SIZE   (2 + NR_REMOTE_SEGS)
#define GDT_INDEX   1
#define IDT_INDEX   2
#define DS_INDEX   3
#define ES_INDEX   4
#define SS_INDEX   5
#define CS_INDEX   6
#define MON_CS_INDEX   7
#define TSS_INDEX   8
#define DS_286_INDEX   9
#define ES_286_INDEX   10
#define A_INDEX   11
#define B_INDEX   12
#define C_INDEX   13
#define D_INDEX   14
#define FIRST_LDT_INDEX   15
#define GDT_SELECTOR   0x08
#define IDT_SELECTOR   0x10
#define DS_SELECTOR   0x18
#define ES_SELECTOR   0x20
#define FLAT_DS_SELECTOR   0x21
#define SS_SELECTOR   0x28
#define CS_SELECTOR   0x30
#define MON_CS_SELECTOR   0x38
#define TSS_SELECTOR   0x40
#define DS_286_SELECTOR   0x49
#define ES_286_SELECTOR   0x51
#define CS_LDT_INDEX   0
#define DS_LDT_INDEX   1
#define EXTRA_LDT_INDEX   2
#define INTR_PRIVILEGE   0
#define TASK_PRIVILEGE   1
#define USER_PRIVILEGE   3
#define BOUNDS_VECTOR   5
#define INVAL_OP_VECTOR   6
#define COPROC_NOT_VECTOR   7
#define DOUBLE_FAULT_VECTOR   8
#define COPROC_SEG_VECTOR   9
#define INVAL_TSS_VECTOR   10
#define SEG_NOT_VECTOR   11
#define STACK_FAULT_VECTOR   12
#define PROTECTION_VECTOR   13
#define TI   0x04
#define RPL   0x03
#define DESC_BASE   2
#define DESC_BASE_MIDDLE   4
#define DESC_ACCESS   5
#define DESC_SIZE   8
#define BASE_MIDDLE_SHIFT   16
#define PRESENT   0x80
#define DPL   0x60
#define DPL_SHIFT   5
#define SEGMENT   0x10
#define EXECUTABLE   0x08
#define CONFORMING   0x04
#define EXPAND_DOWN   0x04
#define READABLE   0x02
#define WRITEABLE   0x02
#define TSS_BUSY   0x02
#define ACCESSED   0x01
#define AVL_286_TSS   1
#define LDT   2
#define BUSY_286_TSS   3
#define CALL_286_GATE   4
#define TASK_GATE   5
#define INT_286_GATE   6
#define TRAP_286_GATE   7
#define PAGE_FAULT_VECTOR   14
#define COPROC_ERR_VECTOR   16
#define DESC_GRANULARITY   6
#define DESC_BASE_HIGH   7
#define BASE_HIGH_SHIFT   24
#define BYTE_GRAN_MAX   0xFFFFFL
#define GRANULARITY_SHIFT   16
#define OFFSET_HIGH_SHIFT   16
#define PAGE_GRAN_SHIFT   12
#define DESC_386_BIT   0x08
#define GRANULAR   0x80
#define DEFAULT   0x40
#define BIG   0x40
#define AVL   0x10
#define LIMIT_HIGH   0x0F


Define Documentation

#define A_INDEX   11
 

Definition at line 20 of file protect.h.

Referenced by phys2seg().

#define ACCESSED   0x01
 

Definition at line 87 of file protect.h.

#define AVL   0x10
 

Definition at line 123 of file protect.h.

#define AVL_286_TSS   1
 

Definition at line 90 of file protect.h.

#define B_INDEX   12
 

Definition at line 21 of file protect.h.

#define BASE_HIGH_SHIFT   24
 

Definition at line 109 of file protect.h.

Referenced by sdesc().

#define BASE_MIDDLE_SHIFT   16
 

Definition at line 72 of file protect.h.

Referenced by sdesc().

#define BIG   0x40
 

Definition at line 122 of file protect.h.

Referenced by dig().

#define BOUNDS_VECTOR   5
 

Definition at line 51 of file protect.h.

Referenced by prot_init().

#define BUSY_286_TSS   3
 

Definition at line 92 of file protect.h.

#define BYTE_GRAN_MAX   0xFFFFFL
 

Definition at line 110 of file protect.h.

Referenced by sdesc().

#define C_INDEX   13
 

Definition at line 22 of file protect.h.

#define CALL_286_GATE   4
 

Definition at line 93 of file protect.h.

#define CONFORMING   0x04
 

Definition at line 82 of file protect.h.

#define COPROC_ERR_VECTOR   16
 

Definition at line 102 of file protect.h.

Referenced by prot_init().

#define COPROC_NOT_VECTOR   7
 

Definition at line 53 of file protect.h.

Referenced by prot_init().

#define COPROC_SEG_VECTOR   9
 

Definition at line 55 of file protect.h.

Referenced by prot_init().

#define CS_INDEX   6
 

Definition at line 15 of file protect.h.

Referenced by prot_init().

#define CS_LDT_INDEX   0
 

Definition at line 39 of file protect.h.

Referenced by alloc_segments().

#define CS_SELECTOR   0x30
 

Definition at line 32 of file protect.h.

Referenced by int_gate().

#define D_INDEX   14
 

Definition at line 23 of file protect.h.

#define DEFAULT   0x40
 

Definition at line 121 of file protect.h.

#define DESC_386_BIT   0x08
 

Definition at line 116 of file protect.h.

#define DESC_ACCESS   5
 

Definition at line 68 of file protect.h.

#define DESC_BASE   2
 

Definition at line 66 of file protect.h.

#define DESC_BASE_HIGH   7
 

Definition at line 106 of file protect.h.

#define DESC_BASE_MIDDLE   4
 

Definition at line 67 of file protect.h.

#define DESC_GRANULARITY   6
 

Definition at line 105 of file protect.h.

#define DESC_SIZE   8
 

Definition at line 69 of file protect.h.

Referenced by alloc_segments(), and prot_init().

#define DOUBLE_FAULT_VECTOR   8
 

Definition at line 54 of file protect.h.

Referenced by prot_init().

#define DPL   0x60
 

Definition at line 76 of file protect.h.

#define DPL_SHIFT   5
 

Definition at line 77 of file protect.h.

Referenced by init_codeseg(), and init_dataseg().

#define DS_286_INDEX   9
 

Definition at line 18 of file protect.h.

Referenced by prot_init().

#define DS_286_SELECTOR   0x49
 

Definition at line 35 of file protect.h.

#define DS_INDEX   3
 

Definition at line 12 of file protect.h.

Referenced by prot_init().

#define DS_LDT_INDEX   1
 

Definition at line 40 of file protect.h.

Referenced by alloc_segments().

#define DS_SELECTOR   0x18
 

Definition at line 28 of file protect.h.

#define ES_286_INDEX   10
 

Definition at line 19 of file protect.h.

Referenced by prot_init().

#define ES_286_SELECTOR   0x51
 

Definition at line 36 of file protect.h.

#define ES_INDEX   4
 

Definition at line 13 of file protect.h.

Referenced by prot_init().

#define ES_SELECTOR   0x20
 

Definition at line 29 of file protect.h.

#define EXECUTABLE   0x08
 

Definition at line 81 of file protect.h.

Referenced by init_codeseg().

#define EXPAND_DOWN   0x04
 

Definition at line 83 of file protect.h.

#define EXTRA_LDT_INDEX   2
 

Definition at line 41 of file protect.h.

Referenced by do_exec().

#define FIRST_LDT_INDEX   15
 

Definition at line 24 of file protect.h.

Referenced by prot_init().

#define FLAT_DS_SELECTOR   0x21
 

Definition at line 30 of file protect.h.

Referenced by phys2seg().

#define GDT_INDEX   1
 

Definition at line 10 of file protect.h.

Referenced by prot_init().

#define GDT_SELECTOR   0x08
 

Definition at line 26 of file protect.h.

#define GDT_SIZE   (FIRST_LDT_INDEX + NR_TASKS + NR_PROCS)
 

Definition at line 4 of file protect.h.

#define GRANULAR   0x80
 

Definition at line 120 of file protect.h.

Referenced by sdesc().

#define GRANULARITY_SHIFT   16
 

Definition at line 111 of file protect.h.

Referenced by sdesc().

#define IDT_INDEX   2
 

Definition at line 11 of file protect.h.

Referenced by prot_init().

#define IDT_SELECTOR   0x10
 

Definition at line 27 of file protect.h.

#define IDT_SIZE   (IRQ8_VECTOR + 8)
 

Definition at line 6 of file protect.h.

#define INT_286_GATE   6
 

Definition at line 95 of file protect.h.

#define INTR_PRIVILEGE   0
 

Definition at line 44 of file protect.h.

Referenced by prot_init().

#define INVAL_OP_VECTOR   6
 

Definition at line 52 of file protect.h.

Referenced by prot_init().

#define INVAL_TSS_VECTOR   10
 

Definition at line 56 of file protect.h.

Referenced by prot_init().

#define LDT   2
 

Definition at line 91 of file protect.h.

Referenced by prot_init().

#define LDT_SIZE   (2 + NR_REMOTE_SEGS)
 

Definition at line 7 of file protect.h.

Referenced by do_exec().

#define LIMIT_HIGH   0x0F
 

Definition at line 124 of file protect.h.

#define MON_CS_INDEX   7
 

Definition at line 16 of file protect.h.

#define MON_CS_SELECTOR   0x38
 

Definition at line 33 of file protect.h.

#define OFFSET_HIGH_SHIFT   16
 

Definition at line 112 of file protect.h.

Referenced by int_gate().

#define PAGE_FAULT_VECTOR   14
 

Definition at line 101 of file protect.h.

Referenced by prot_init().

#define PAGE_GRAN_SHIFT   12
 

Definition at line 113 of file protect.h.

Referenced by sdesc().

#define PRESENT   0x80
 

Definition at line 75 of file protect.h.

Referenced by init_codeseg(), init_dataseg(), and prot_init().

#define PROTECTION_VECTOR   13
 

Definition at line 59 of file protect.h.

Referenced by prot_init().

#define READABLE   0x02
 

Definition at line 84 of file protect.h.

Referenced by init_codeseg().

#define RPL   0x03
 

Definition at line 63 of file protect.h.

#define SEG_NOT_VECTOR   11
 

Definition at line 57 of file protect.h.

Referenced by prot_init().

#define SEGMENT   0x10
 

Definition at line 78 of file protect.h.

Referenced by init_codeseg(), and init_dataseg().

#define SS_INDEX   5
 

Definition at line 14 of file protect.h.

#define SS_SELECTOR   0x28
 

Definition at line 31 of file protect.h.

#define STACK_FAULT_VECTOR   12
 

Definition at line 58 of file protect.h.

Referenced by prot_init().

#define TASK_GATE   5
 

Definition at line 94 of file protect.h.

#define TASK_PRIVILEGE   1
 

Definition at line 45 of file protect.h.

Referenced by alloc_segments(), phys2seg(), and prot_init().

#define TI   0x04
 

Definition at line 62 of file protect.h.

Referenced by alloc_segments(), ini_terminal(), shell(), and starttcap().

#define TRAP_286_GATE   7
 

Definition at line 96 of file protect.h.

#define TSS_BUSY   0x02
 

Definition at line 86 of file protect.h.

#define TSS_INDEX   8
 

Definition at line 17 of file protect.h.

#define TSS_SELECTOR   0x40
 

Definition at line 34 of file protect.h.

#define USER_PRIVILEGE   3
 

Definition at line 46 of file protect.h.

Referenced by alloc_segments(), and prot_init().

#define WRITEABLE   0x02
 

Definition at line 85 of file protect.h.

Referenced by init_dataseg().


Generated on Fri Apr 14 23:14:15 2006 for minix by  doxygen 1.4.6