question on 'current' task macro, init_task

Darin Johnson (darin@connectnet.com)
Sun, 17 Aug 1997 18:54:36 -0700 (PDT)


I'm baffled by the i386 'current' macro. It appears to just take
the stack pointer and round it down to the next 8K alignment.
How can this work if the stack is larger than 8K and far removed
from the task_struct? Or is current only used for the kernel threads?

Also, the init_task.mm->mmap->vm_start and vm_end are always '0'.
Is this right?