aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/paravirt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/paravirt.h')
-rw-r--r--include/asm-x86/paravirt.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h
index 0333fb6988b5..86a9d7b0920f 100644
--- a/include/asm-x86/paravirt.h
+++ b/include/asm-x86/paravirt.h
@@ -17,6 +17,7 @@
17#include <linux/types.h> 17#include <linux/types.h>
18#include <linux/cpumask.h> 18#include <linux/cpumask.h>
19#include <asm/kmap_types.h> 19#include <asm/kmap_types.h>
20#include <asm/desc_defs.h>
20 21
21struct page; 22struct page;
22struct thread_struct; 23struct thread_struct;
@@ -99,8 +100,8 @@ struct pv_cpu_ops {
99 int entrynum, u32 low, u32 high); 100 int entrynum, u32 low, u32 high);
100 void (*write_gdt_entry)(struct desc_struct *, 101 void (*write_gdt_entry)(struct desc_struct *,
101 int entrynum, u32 low, u32 high); 102 int entrynum, u32 low, u32 high);
102 void (*write_idt_entry)(struct desc_struct *, 103 void (*write_idt_entry)(gate_desc *,
103 int entrynum, u32 low, u32 high); 104 int entrynum, const gate_desc *gate);
104 void (*load_sp0)(struct tss_struct *tss, struct thread_struct *t); 105 void (*load_sp0)(struct tss_struct *tss, struct thread_struct *t);
105 106
106 void (*set_iopl_mask)(unsigned mask); 107 void (*set_iopl_mask)(unsigned mask);
@@ -667,9 +668,9 @@ static inline void write_gdt_entry(void *dt, int entry, u32 low, u32 high)
667{ 668{
668 PVOP_VCALL4(pv_cpu_ops.write_gdt_entry, dt, entry, low, high); 669 PVOP_VCALL4(pv_cpu_ops.write_gdt_entry, dt, entry, low, high);
669} 670}
670static inline void write_idt_entry(void *dt, int entry, u32 low, u32 high) 671static inline void write_idt_entry(gate_desc *dt, int entry, const gate_desc *g)
671{ 672{
672 PVOP_VCALL4(pv_cpu_ops.write_idt_entry, dt, entry, low, high); 673 PVOP_VCALL3(pv_cpu_ops.write_idt_entry, dt, entry, g);
673} 674}
674static inline void set_iopl_mask(unsigned mask) 675static inline void set_iopl_mask(unsigned mask)
675{ 676{