Re: Realtime Preemption, 2.6.12, Beginners Guide?

From: Karsten Wiese
Date: Sun Jul 17 2005 - 07:05:24 EST


Am Samstag, 16. Juli 2005 19:15 schrieb Ingo Molnar:
>
> * Karsten Wiese <annabellesgarden@xxxxxxxx> wrote:
>
> > Have I corrected the other path of ioapic early initialization, which
> > had lacked virtual-address setup before ioapic_data[ioapic] was to be
> > filled in -51-28? Please test attached patch on top of -51-29 or
> > later. Also on Systems that liked -51-28.
>
> thanks - i've applied it to my tree and have released the -51-31 patch.
> It looks good on my testboxes.
>
Found another error:
the ioapic cache isn't fully initialized in -51-31's ioapic_cache_init().
Please apply attached patch on top of -51-31.

Karsten
--- linux-2.6.12-RT-51-31/arch/i386/kernel/io_apic.c 2005-07-17 12:40:35.000000000 +0200
+++ linux-2.6.12-RT/arch/i386/kernel/io_apic.c 2005-07-17 13:33:06.000000000 +0200
@@ -158,7 +158,7 @@
static void __init ioapic_cache_init(struct ioapic_data_struct *ioapic)
{
int reg;
- for (reg = 0; reg < (ioapic->nr_registers + 10); reg++)
+ for (reg = 0; reg < (0x10 + 2 * ioapic->nr_registers); reg++)
ioapic->cached_val[reg] = __raw_io_apic_read(ioapic, reg);
}
# endif