hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/desc_defs.h
....@@ -74,6 +74,13 @@
7474 p : 1;
7575 } __attribute__((packed));
7676
77
+struct idt_data {
78
+ unsigned int vector;
79
+ unsigned int segment;
80
+ struct idt_bits bits;
81
+ const void *addr;
82
+};
83
+
7784 struct gate_struct {
7885 u16 offset_low;
7986 u16 segment;
....@@ -109,6 +116,9 @@
109116
110117 #endif /* !__ASSEMBLY__ */
111118
119
+/* Boot IDT definitions */
120
+#define BOOT_IDT_ENTRIES 32
121
+
112122 /* Access rights as returned by LAR */
113123 #define AR_TYPE_RODATA (0 * (1 << 9))
114124 #define AR_TYPE_RWDATA (1 * (1 << 9))