diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:13 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:13 -0500 |
commit | 014b15be30c04622d130946ab7c0a9101b523a8a (patch) | |
tree | 9138df88eb59da0021a4ac10c8ce4c66f9a62e13 /arch/x86/lguest/boot.c | |
parent | 18245d5b6e54ca76b60b687e43eb893f9e9dd611 (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 'arch/x86/lguest/boot.c')
-rw-r--r-- | arch/x86/lguest/boot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c index b50c8ad25ab4..a63373759f08 100644 --- a/arch/x86/lguest/boot.c +++ b/arch/x86/lguest/boot.c | |||
@@ -262,10 +262,10 @@ static void lguest_load_gdt(const struct desc_ptr *desc) | |||
262 | /* For a single GDT entry which changes, we do the lazy thing: alter our GDT, | 262 | /* For a single GDT entry which changes, we do the lazy thing: alter our GDT, |
263 | * then tell the Host to reload the entire thing. This operation is so rare | 263 | * then tell the Host to reload the entire thing. This operation is so rare |
264 | * that this naive implementation is reasonable. */ | 264 | * that this naive implementation is reasonable. */ |
265 | static void lguest_write_gdt_entry(struct desc_struct *dt, | 265 | static void lguest_write_gdt_entry(struct desc_struct *dt, int entrynum, |
266 | int entrynum, u32 low, u32 high) | 266 | const void *desc, int type) |
267 | { | 267 | { |
268 | write_dt_entry(dt, entrynum, low, high); | 268 | native_write_gdt_entry(dt, entrynum, desc, type); |
269 | hcall(LHCALL_LOAD_GDT, __pa(dt), GDT_ENTRIES, 0); | 269 | hcall(LHCALL_LOAD_GDT, __pa(dt), GDT_ENTRIES, 0); |
270 | } | 270 | } |
271 | 271 | ||