Interrupt Descriptor Table: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Add AMD64 version of IDT entry
Line 31: Line 31:
uint8_t type_attr; // type and attributes, see below
uint8_t type_attr; // type and attributes, see below
uint16_t offset_2; // offset bits 16..31
uint16_t offset_2; // offset bits 16..31
};
</source>

For AMD64 the entries looks like this:

<source lang="c">
struct IDTDescr{
uint16_t offset_1; // offset bits 0..15
uint16_t selector; // a code segment selector in GDT or LDT
uint8_t ist; // bits 0..2 holds Interrupt Stack Table offset, rest of bits zero.
uint8_t type_attr; // type and attributes, see below
uint16_t offset_2; // offset bits 16..31
uint32_t offset_3; // offset bits 32..63
uint32_t zero; // reserved
};
};
</source>
</source>