how does linux restores a thread's stack pointer, program counter and return address.

Chauhan, Himanshu hschauhan at nulltrace.org
Tue Oct 4 08:50:43 EDT 2011


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



More information about the Kernelnewbies mailing list