Re: 4k stacks in 2.6

Linus Torvalds
2004-05-27T14:57:43Z

On Thu, 27 May 2004, Andrea Arcangeli wrote:
>
> On Thu, May 27, 2004 at 10:18:40AM -0400, Brian Gerst wrote:
> > The problem on i386 (unlike x86-64) is that the thread_info struct sits
> > at the bottom of the stack and is referenced by masking bits off %esp.
> > So the stack size must be constant whether in process context or IRQ
> > context.
>
> so what, that's a minor implementation detail, pda is a software thing.

"minor implementation detail"?

You need to get to the thread info _some_ way, and you need to get to it
_fast_. There are really no sane alternatives. I certainly do not want to
play games with segments.

Linus