[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Kernel stack



>
>>own user stack and a kernel stack. On Linux, this kernel stack is in
>>the same page as the task struct. In fact, if you look at the #define
>


When a new process is created, the kernel needs to allocate the
task_struct and a kernel stack. It does this by allocating a single
page, using the lower addresses for task_struct and initializing the
%esp to the end of the page (stack grows downwards).

    -Arun