On Mon, Oct 09, 2000 at 01:02:21AM +0200, Jamie Lokier wrote: > [EMAIL PROTECTED] wrote: > > BTW: there is an implicit reference to "current" in smp_processor_id. > > Yes I forgot about that. (Self-flagellate). However that is > architecture specific. If it's not an SMP Vax port, no big deal. If it > is, there's a way to arrange that smp_processor_id returns the correct > processor id even from the interrupt stack. Yes, that's easily done. Interrupt stacks are per-processor, so they are part of the per-cpu data structures. So we can use a similar trick to the task_struct/kernel stack hack. (And still get a crash if current is used from interrupt context.) Later, Kenn - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: Calling current() from interrupt context Jamie Lokier
- Re: Calling current() from interrupt context yodaiken
- Re: Calling current() from interrupt context Mitchell Blank Jr
- Re: Calling current() from interrupt contex... yodaiken
- Re: Calling current() from interrupt co... Mitchell Blank Jr
- Re: Calling current() from interru... Ralf Baechle
- Re: Calling current() from interrupt co... Ralf Baechle
- Re: Calling current() from interrupt contex... John Levon
- Re: Calling current() from interrupt context Jamie Lokier
- Re: Calling current() from interrupt contex... yodaiken
- Re: Calling current() from interrupt contex... Kenn Humborg
- Re: Calling current() from interrupt context Ralf Baechle
- Re: Calling current() from interrupt context Andi Kleen
- Re: Calling current() from interrupt context Kenn Humborg
- Re: Calling current() from interrupt context Kenn Humborg
- Re: Calling current() from interrupt contex... Andi Kleen
- Re: Calling current() from interrupt contex... Kenn Humborg
- Re: Calling current() from interrupt co... Andi Kleen
- Re: Calling current() from interru... Kenn Humborg