Hi,
I have a stack hungry code in the kernel. It hits the
end of stack from time to time. I wrote function to
which I pass pointers to function and memory area
which should be used as stack for function execution.
(I just load pointer to new stack area into esp
register). This function works just fine in user space
and memory area provided by me is used as stack.
This function doesn't work in the kernel (system hungs
instantly when my function is called). Does antbody
have any idea what the reason can be? Some special
alignment? Special memory segment? In what direction
should I look?
(sure I tried some magic with alignment like -
__attribute__ ((aligned (8192))) - no any effect)
(there was some patch to increase stack size
kernelwide, but I don't want to affect all the
system).