diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:12 -0500 |
commit | 8d947344c47a40626730bb80d136d8daac9f2060 (patch) | |
tree | 3987eb84706b2f4e968d6838da9d2d1f6888e34e /include/asm-x86/paravirt.h | |
parent | 010d4f8221cf51a2ab8b037d0149506b397d073f (diff) |
x86: change write_idt_entry signature
this patch changes write_idt_entry signature. It now takes a gate_desc
instead of the a and b parameters. It will allow it to be later unified
between i386 and x86_64.
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.h | 9 |
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 | ||
21 | struct page; | 22 | struct page; |
22 | struct thread_struct; | 23 | struct 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 | } |
670 | static inline void write_idt_entry(void *dt, int entry, u32 low, u32 high) | 671 | static 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 | } |
674 | static inline void set_iopl_mask(unsigned mask) | 675 | static inline void set_iopl_mask(unsigned mask) |
675 | { | 676 | { |