projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77edffb
)
alpha: fix usp value in multithreaded coredumps
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 25 Sep 2010 20:07:51 +0000
(21:07 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 25 Sep 2010 21:38:13 +0000
(14:38 -0700)
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>
arch/alpha/kernel/process.c
patch
|
blob
|
history
diff --git
a/arch/alpha/kernel/process.c
b/arch/alpha/kernel/process.c
index 842dba308eab3065510857e50312496c674c1097..3ec35066f1dc51c09367c32bea106453a109953d 100644
(file)
--- a/
arch/alpha/kernel/process.c
+++ b/
arch/alpha/kernel/process.c
@@
-356,7
+356,7
@@
dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt, struct thread_info *ti)
dest[27] = pt->r27;
dest[28] = pt->r28;
dest[29] = pt->gp;
- dest[30] =
rdusp()
;
+ 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