diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2006-01-03 10:58:53 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-03 10:58:53 -0500 |
| commit | a18ceba7b40e24a9da87249bd74f16ea5abd6894 (patch) | |
| tree | 5ce615d345e720ddabf95c46fb62287ee763ad4e /arch/i386/kernel/process.c | |
| parent | aaadff81195056c7c14e0d834b3318c624c0fd78 (diff) | |
| parent | 88026842b0a760145aa71d69e74fbc9ec118ca44 (diff) | |
Merge branch 'master'
Diffstat (limited to 'arch/i386/kernel/process.c')
| -rw-r--r-- | arch/i386/kernel/process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c index df6c2bcde067..2333aead0563 100644 --- 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) | |||
| 554 | struct pt_regs ptregs; | 554 | struct pt_regs ptregs; |
| 555 | 555 | ||
| 556 | ptregs = *(struct pt_regs *) | 556 | ptregs = *(struct pt_regs *) |
| 557 | ((unsigned long)tsk->thread_info+THREAD_SIZE - sizeof(ptregs)); | 557 | ((unsigned long)tsk->thread_info + |
| 558 | /* see comments in copy_thread() about -8 */ | ||
| 559 | THREAD_SIZE - sizeof(ptregs) - 8); | ||
| 558 | ptregs.xcs &= 0xffff; | 560 | ptregs.xcs &= 0xffff; |
| 559 | ptregs.xds &= 0xffff; | 561 | ptregs.xds &= 0xffff; |
| 560 | ptregs.xes &= 0xffff; | 562 | ptregs.xes &= 0xffff; |
