thread_info address calculation
kernel.vijay at gmail.com
Fri Sep 16 08:16:03 EDT 2011
> It's the same thing as you read:
> THREAD size is 8kb so the operation looks like the following:
> current_stack_pointer & ~(8191) == current_stack_pointet & 0xFFFFFE00
> (last 13 bits are 0)
Ok. Got it.
But how ANDing it with current stack pointer points to the address of
Suppose stack is growing from higher to lower memory address.
More information about the Kernelnewbies