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 /arch/x86/lguest/boot.c | |
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 'arch/x86/lguest/boot.c')
-rw-r--r-- | arch/x86/lguest/boot.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c index aa0bdd5fc4bb..b50c8ad25ab4 100644 --- a/arch/x86/lguest/boot.c +++ b/arch/x86/lguest/boot.c | |||
@@ -217,13 +217,14 @@ static void irq_enable(void) | |||
217 | * address of the handler, and... well, who cares? The Guest just asks the | 217 | * address of the handler, and... well, who cares? The Guest just asks the |
218 | * Host to make the change anyway, because the Host controls the real IDT. | 218 | * Host to make the change anyway, because the Host controls the real IDT. |
219 | */ | 219 | */ |
220 | static void lguest_write_idt_entry(struct desc_struct *dt, | 220 | static void lguest_write_idt_entry(gate_desc *dt, |
221 | int entrynum, u32 low, u32 high) | 221 | int entrynum, const gate_desc *g) |
222 | { | 222 | { |
223 | u32 *desc = (u32 *)g; | ||
223 | /* Keep the local copy up to date. */ | 224 | /* Keep the local copy up to date. */ |
224 | write_dt_entry(dt, entrynum, low, high); | 225 | native_write_idt_entry(dt, entrynum, g); |
225 | /* Tell Host about this new entry. */ | 226 | /* Tell Host about this new entry. */ |
226 | hcall(LHCALL_LOAD_IDT_ENTRY, entrynum, low, high); | 227 | hcall(LHCALL_LOAD_IDT_ENTRY, entrynum, desc[0], desc[1]); |
227 | } | 228 | } |
228 | 229 | ||
229 | /* Changing to a different IDT is very rare: we keep the IDT up-to-date every | 230 | /* Changing to a different IDT is very rare: we keep the IDT up-to-date every |