projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de9e007
)
[PATCH] x86: teach dump_task_regs() about the -8 offset.
author
Stas Sergeev
<stsp@aknet.ru>
Sun, 1 Jan 2006 01:18:52 +0000
(
04:18
+0300)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 1 Jan 2006 02:01:57 +0000
(18:01 -0800)
This should fix multi-threaded core-files
Signed-off-by: stsp@aknet.ru
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/process.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/i386/kernel/process.c
b/arch/i386/kernel/process.c
index df6c2bcde0672af1c7d5f084810e874d82a95e04..2333aead0563a829b4bf7a4f26326657d2b19428 100644
(file)
--- a/
arch/i386/kernel/process.c
+++ b/
arch/i386/kernel/process.c
@@
-554,7
+554,9
@@
int dump_task_regs(struct task_struct *tsk, elf_gregset_t *regs)
struct pt_regs ptregs;
ptregs = *(struct pt_regs *)
- ((unsigned long)tsk->thread_info+THREAD_SIZE - sizeof(ptregs));
+ ((unsigned long)tsk->thread_info +
+ /* see comments in copy_thread() about -8 */
+ THREAD_SIZE - sizeof(ptregs) - 8);
ptregs.xcs &= 0xffff;
ptregs.xds &= 0xffff;
ptregs.xes &= 0xffff;