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 | 75b8bb3e56ca09a467fbbe5229bc68627f7445be (patch) | |
tree | b0eba1d65eb2022fbda902c99edd066b1b3f34da /include/asm-x86/desc_64.h | |
parent | 014b15be30c04622d130946ab7c0a9101b523a8a (diff) |
x86: change write_ldt_entry signature
this patch changes the signature of write_ldt_entry.
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/desc_64.h')
-rw-r--r-- | include/asm-x86/desc_64.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/asm-x86/desc_64.h b/include/asm-x86/desc_64.h index ba7fb87d10f3..7cdd3f0420fd 100644 --- a/include/asm-x86/desc_64.h +++ b/include/asm-x86/desc_64.h | |||
@@ -34,12 +34,9 @@ extern gate_desc idt_table[]; | |||
34 | extern struct desc_ptr cpu_gdt_descr[]; | 34 | extern struct desc_ptr cpu_gdt_descr[]; |
35 | 35 | ||
36 | static inline void write_ldt_entry(struct desc_struct *ldt, | 36 | static inline void write_ldt_entry(struct desc_struct *ldt, |
37 | int entry, u32 entry_low, u32 entry_high) | 37 | int entry, void *ptr) |
38 | { | 38 | { |
39 | __u32 *lp = (__u32 *)((entry << 3) + (char *)ldt); | 39 | memcpy(&ldt[entry], ptr, 8); |
40 | |||
41 | lp[0] = entry_low; | ||
42 | lp[1] = entry_high; | ||
43 | } | 40 | } |
44 | 41 | ||
45 | /* the cpu gdt accessor */ | 42 | /* the cpu gdt accessor */ |