On Thu, Apr 22, 2010 at 21:59, Andrei Matei <andreimatei1@xxxxxxxxx> wrote: > If you want to reuse the stack you were using before switching to the new > one, then yes, you have to save the stack pointer are restore it later. > There are portable ways of doing these; look at getcontext/setcontext. Thanks, quite smart solution I think. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ