Annotation of /trunk/kernel26-magellan/patches-2.6.25-r5/0110-2.6.25.11-all-fixes.patch
Parent Directory | Revision Log
Revision 677 -
(hide annotations)
(download)
Wed Sep 10 21:27:27 2008 UTC (16 years ago) by niro
File size: 645 byte(s)
Wed Sep 10 21:27:27 2008 UTC (16 years ago) by niro
File size: 645 byte(s)
2.6.25-magellan-r5: - updated to linux-2.6.25.17
1 | niro | 677 | diff --git a/include/asm-x86/desc.h b/include/asm-x86/desc.h |
2 | index 5b6a05d..76ea17a 100644 | ||
3 | --- a/include/asm-x86/desc.h | ||
4 | +++ b/include/asm-x86/desc.h | ||
5 | @@ -191,8 +191,8 @@ static inline void native_set_ldt(const void *addr, unsigned int entries) | ||
6 | unsigned cpu = smp_processor_id(); | ||
7 | ldt_desc ldt; | ||
8 | |||
9 | - set_tssldt_descriptor(&ldt, (unsigned long)addr, | ||
10 | - DESC_LDT, entries * sizeof(ldt) - 1); | ||
11 | + set_tssldt_descriptor(&ldt, (unsigned long)addr, DESC_LDT, | ||
12 | + entries * LDT_ENTRY_SIZE - 1); | ||
13 | write_gdt_entry(get_cpu_gdt_table(cpu), GDT_ENTRY_LDT, | ||
14 | &ldt, DESC_LDT); | ||
15 | __asm__ __volatile__("lldt %w0"::"q" (GDT_ENTRY_LDT*8)); |