aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/paravirt.h
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-30 07:31:13 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:13 -0500
commit014b15be30c04622d130946ab7c0a9101b523a8a (patch)
tree9138df88eb59da0021a4ac10c8ce4c66f9a62e13 /include/asm-x86/paravirt.h
parent18245d5b6e54ca76b60b687e43eb893f9e9dd611 (diff)
x86: change write_gdt_entry signature.
This patch changes the write_gdt_entry function signature. Instead of the old "a" and "b" parameters, it now receives a pointer to a desc_struct, and the size of the entry being handled. This is because x86_64 can have some 16-byte entries as well as 8-byte ones. Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> CC: Zachary Amsden <zach@vmware.com> CC: Jeremy Fitzhardinge <Jeremy.Fitzhardinge.citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/paravirt.h')
-rw-r--r--include/asm-x86/paravirt.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h
index 86a9d7b0920f..3f2abf295e2a 100644
--- a/include/asm-x86/paravirt.h
+++ b/include/asm-x86/paravirt.h
@@ -99,7 +99,7 @@ struct pv_cpu_ops {
99 void (*write_ldt_entry)(struct desc_struct *, 99 void (*write_ldt_entry)(struct desc_struct *,
100 int entrynum, u32 low, u32 high); 100 int entrynum, u32 low, u32 high);
101 void (*write_gdt_entry)(struct desc_struct *, 101 void (*write_gdt_entry)(struct desc_struct *,
102 int entrynum, u32 low, u32 high); 102 int entrynum, const void *desc, int size);
103 void (*write_idt_entry)(gate_desc *, 103 void (*write_idt_entry)(gate_desc *,
104 int entrynum, const gate_desc *gate); 104 int entrynum, const gate_desc *gate);
105 void (*load_sp0)(struct tss_struct *tss, struct thread_struct *t); 105 void (*load_sp0)(struct tss_struct *tss, struct thread_struct *t);
@@ -664,10 +664,13 @@ static inline void write_ldt_entry(void *dt, int entry, u32 low, u32 high)
664{ 664{
665 PVOP_VCALL4(pv_cpu_ops.write_ldt_entry, dt, entry, low, high); 665 PVOP_VCALL4(pv_cpu_ops.write_ldt_entry, dt, entry, low, high);
666} 666}
667static inline void write_gdt_entry(void *dt, int entry, u32 low, u32 high) 667
668static inline void write_gdt_entry(struct desc_struct *dt, int entry,
669 void *desc, int type)
668{ 670{
669 PVOP_VCALL4(pv_cpu_ops.write_gdt_entry, dt, entry, low, high); 671 PVOP_VCALL4(pv_cpu_ops.write_gdt_entry, dt, entry, desc, type);
670} 672}
673
671static inline void write_idt_entry(gate_desc *dt, int entry, const gate_desc *g) 674static inline void write_idt_entry(gate_desc *dt, int entry, const gate_desc *g)
672{ 675{
673 PVOP_VCALL3(pv_cpu_ops.write_idt_entry, dt, entry, g); 676 PVOP_VCALL3(pv_cpu_ops.write_idt_entry, dt, entry, g);