diff options
| author | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-25 07:26:22 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-25 08:45:12 +0100 |
| commit | 5ba212fe7123d454414f64d42ec7ff0822458c13 (patch) | |
| tree | a82f8057cc57b6efb8ac19f9d01c2cc1aebc29c0 /kernel/include/idt.h | |
| parent | 239900af293f192931391dc5579afab39a43e6c6 (diff) | |
ANSI C: // -> /* */
Diffstat (limited to 'kernel/include/idt.h')
| -rw-r--r-- | kernel/include/idt.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/include/idt.h b/kernel/include/idt.h index 22e05ec..2d28be0 100644 --- a/kernel/include/idt.h +++ b/kernel/include/idt.h @@ -9,13 +9,13 @@ #define TRAP_GATE 0x8F struct idt_entry { - 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_attributes; // gate type, dpl, and p fields - uint16_t offset_2; // offset bits 16..31 - uint32_t offset_3; // offset bits 32..63 - uint32_t zero; // reserved + 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_attributes; /* gate type, dpl, and p fields */ + uint16_t offset_2; /* offset bits 16..31 */ + uint32_t offset_3; /* offset bits 32..63 */ + uint32_t zero; /* reserved */ } __attribute__((packed)); typedef struct idt_entry idt_entry; |
