Skip to content
Snippets Groups Projects
Commit 32163f4b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

alpha: fix usp value in multithreaded coredumps


rdusp() gives us the right value only for the current thread...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 77edffb6
No related branches found
No related tags found
No related merge requests found
...@@ -356,7 +356,7 @@ dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt, struct thread_info *ti) ...@@ -356,7 +356,7 @@ dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt, struct thread_info *ti)
dest[27] = pt->r27; dest[27] = pt->r27;
dest[28] = pt->r28; dest[28] = pt->r28;
dest[29] = pt->gp; dest[29] = pt->gp;
dest[30] = rdusp(); dest[30] = ti == current_thread_info() ? rdusp() : ti->pcb.usp;
dest[31] = pt->pc; dest[31] = pt->pc;
/* Once upon a time this was the PS value. Which is stupid /* Once upon a time this was the PS value. Which is stupid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment