rdusp() gives us the right value only for the current thread...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
dest[27] = pt->r27;
dest[28] = pt->r28;
dest[29] = pt->gp;
dest[27] = pt->r27;
dest[28] = pt->r28;
dest[29] = pt->gp;
+ dest[30] = ti == current_thread_info() ? rdusp() : ti->pcb.usp;
dest[31] = pt->pc;
/* Once upon a time this was the PS value. Which is stupid
dest[31] = pt->pc;
/* Once upon a time this was the PS value. Which is stupid