Oct. 4, 2011
12:50 p.m.
Hi Smital,
I am keen to find out how does linux restores a thread's stack pointer, program counter and return address.
Isn't it that each thread has a different task_struct and at schedule r29 is reloaded from its own independent task_struct? Also, while scheduling pc and r31 are stored at the independent stack? Anyways, I think if you ask this question at Linux MIPS mailing list, people might shed more light on it. -Himanshu