2 * Interrupt descriptor table related code
4 * This file is licensed under the GPL V2
6 #include <linux/interrupt.h>
10 /* Must be page-aligned because the real IDT is used in a fixmap. */
11 gate_desc idt_table[IDT_ENTRIES] __page_aligned_bss;
13 struct desc_ptr idt_descr __ro_after_init = {
14 .size = (IDT_ENTRIES * 2 * sizeof(unsigned long)) - 1,
15 .address = (unsigned long) idt_table,
19 /* No need to be aligned, but done to keep all IDTs defined the same way. */
20 gate_desc debug_idt_table[IDT_ENTRIES] __page_aligned_bss;
22 const struct desc_ptr debug_idt_descr = {
23 .size = IDT_ENTRIES * 16 - 1,
24 .address = (unsigned long) debug_idt_table,