aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/desc.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/asm-i386/desc.h b/include/asm-i386/desc.h
index 13f701ea9a8f..4a974064e928 100644
--- a/include/asm-i386/desc.h
+++ b/include/asm-i386/desc.h
@@ -18,16 +18,13 @@ struct Xgt_desc_struct {
18 unsigned short pad; 18 unsigned short pad;
19} __attribute__ ((packed)); 19} __attribute__ ((packed));
20 20
21extern struct Xgt_desc_struct idt_descr;
22DECLARE_PER_CPU(struct Xgt_desc_struct, cpu_gdt_descr);
23DECLARE_PER_CPU(struct desc_struct, cpu_gdt[GDT_ENTRIES]); 21DECLARE_PER_CPU(struct desc_struct, cpu_gdt[GDT_ENTRIES]);
24extern struct Xgt_desc_struct early_gdt_descr;
25
26static inline struct desc_struct *get_cpu_gdt_table(unsigned int cpu) 22static inline struct desc_struct *get_cpu_gdt_table(unsigned int cpu)
27{ 23{
28 return (struct desc_struct *)per_cpu(cpu_gdt_descr, cpu).address; 24 return per_cpu(cpu_gdt, cpu);
29} 25}
30 26
27extern struct Xgt_desc_struct idt_descr;
31extern struct desc_struct idt_table[]; 28extern struct desc_struct idt_table[];
32extern void set_intr_gate(unsigned int irq, void * addr); 29extern void set_intr_gate(unsigned int irq, void * addr);
33 30