Re: [patch] Real-Time Preemption, -RT-2.6.13-rc4-V0.7.52-01

George Anzinger
2005-08-03T02:14:53Z

Keith Owens wrote:
> On Tue, 02 Aug 2005 18:12:27 -0700,
> George Anzinger <george@mvista.com> wrote:
>
>>How about something like:
>> if (current + THREAD_SIZE/sizeof(long) - (regs + sizeof(pt_regs)) > MAGIC)
>
>
> current points to the current struct task, regs points to the kernel
> stack. Those two data areas can be completely separate, as they are on
> i386. Also i386 uses a separate kernel stack for interrupts.

Acually I must mean the thread_info and not current. i386 only uses a
seperate stack if you use 4K stacks. I think others use seperate
interrupt stacks, however :(. Also, on thinking on it, I think some
archs don't call the registers pt_regs either. Oh, well, it was a
thought...

Waiting for its brother... :)
--
George Anzinger george@mvista.com
HRT (High-res-timers): http://sourceforge.net/projects/high-res-timers/