Re: Strange interrupt behaviour

Andrea Arcangeli (arcangeli@mbox.queen.it)
Thu, 16 Jul 1998 09:10:34 +0200 (CEST)


On Thu, 16 Jul 1998, Andi Kleen wrote:

>> And how do you handle a per CPU stack?
>
>How? (I'm not sure if I follow you here)
>
>Just use smp_processor_id() to select the right stack, just like
>do_IRQ already does to update the per-CPU interrupt statistics.

OK. Just implemented. To make my patch safe now I only need to align the
per interrupt stack with the memory page and memcpy from current to
irq_stack the task struct everytime there is an interrupt (I also need to
enlarge the per interrupt stack to 8kbyte due get_current()
implementation). Probably the memcpy will cause an high overhead... but
just to try...

And for the race I think that we could fix it.

Andrea[s] Arcangeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html