Interrupt Descriptor Table: Difference between revisions

Add AMD64 version of IDT entry
[unchecked revision][unchecked revision]
(Add AMD64 version of IDT entry)
Line 31:
uint8_t type_attr; // type and attributes, see below
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>
Anonymous user