On Fri, 2006-11-10 at 11:29 -0800, divya arora wrote: > Hi, > I want to alter the program stack before executing > some kernel functions. Lets say I have a call chain > fa()->fb()->fc()... and I want to change the stack at > the point fa()->fb(). > I also have an array > int static_stack[4096]; > For simplicity assume, fb() takes no arguments and > 4096*4 bytes is enough for stack space of > fb()->fc()... > Then should I just not be able to make this work by > simply modifying esp? It doesn't seem to work though. you can't have variable stack sizes in linux on x86; the stack size is used for example from IRQ context (even NMI context which you can't block).... so its' better to fix your code to not need that much stack. If you post the code we could even help you with constructive suggestions on how to do that... -- if you want to mail me at work (you don't), use arjan (at) linux.intel.com Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/