Interrupt Descriptor Table: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
WIP |
No edit summary |
||
Line 23:
<tt>type_attr</tt> is specified here:
Bit: 7 .
+----------+
|Pr Priv
+----------+
The bit fields of Flags are:
* '''Pr
* '''Priv
* '''S''': System segment bit.
'''GateType''' determines the type of gate.
Line 65:
Trap and Interrupt gates are similar, and their descriptors are structurally the same, they differ only in the "type" field. The difference is that
Choosing type_attr values: (See [[Descriptors#type_attr]])
* type
** 1110b=0xE (32-bit interrupt gate)
Line 76 ⟶ 73:
** 0110b=0x6 (16-bit interrupt gate)
** 0111b=0x7 (16-bit trap gate)
Here are some pre-cooked type_attr values people are likely to use (assuming DPL=0):
Line 99 ⟶ 95:
Choosing type_attr values: (See [[Descriptors#type_attr]])
* type=0b0101=0x5 (task gate)
|