[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <44EC6F21.9090000@goop.org>
Date: Wed, 23 Aug 2006 08:07:13 -0700
From: Jeremy Fitzhardinge <jeremy@...p.org>
To: Paul Drynoff <pauldrynoff@...il.com>
CC: Andrew Morton <akpm@...l.org>,
Jeremy Fitzhardinge <jeremy@...source.com>,
linux-kernel@...r.kernel.org, Zachary Amsden <zach@...are.com>
Subject: Re: [BUG] Can not boot linux-2.6.18-rc4-mm2
Paul Drynoff wrote:
> On 8/23/06, Jeremy Fitzhardinge <jeremy@...p.org> wrote:
>> Hm. Try this:
>> --- a/arch/i386/kernel/paravirt.c
>> +++ b/arch/i386/kernel/paravirt.c
> I have no such file.
>
>> --- a/include/asm-i386/desc.h
>> +++ b/include/asm-i386/desc.h
>> @@ -97,7 +97,7 @@ static inline void set_ldt(const void *a
>> __u32 low, high;
>>
>> pack_descriptor(&low, &high, (unsigned long)addr,
>> - entries * sizeof(struct desc_struct) - 1,
>> + entries * sizeof(struct desc_struct),
>> DESCTYPE_LDT, 0);
>> write_gdt_entry(get_cpu_gdt_table(cpu), GDT_ENTRY_LDT, low,
>> high);
>
> There is no such code in this file.
Ah, yes, that was against a different patch queue.
> I adopt your code for linux-2.6.18-rc4-mm2, and looks like it fix bug.
>
> Index: linux-2.6.18-rc4-mm2/include/asm-i386/desc.h
> ===================================================================
> --- linux-2.6.18-rc4-mm2.orig/include/asm-i386/desc.h
> +++ linux-2.6.18-rc4-mm2/include/asm-i386/desc.h
> @@ -114,7 +114,7 @@ static inline void set_ldt_desc(unsigned
> {
> __u32 a, b;
> pack_descriptor(&a, &b, (unsigned long)addr,
> - entries * sizeof(struct desc_struct) - 1,
> + entries * sizeof(struct desc_struct),
> DESCTYPE_LDT, 0);
> write_gdt_entry(get_cpu_gdt_table(cpu), GDT_ENTRY_LDT, a, b);
> }
Great!
J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists