Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136753
b: refs/heads/master
c: 6cd61c0
h: refs/heads/master
i:
  136751: 03371c7
v: v3
  • Loading branch information
Tejun Heo authored and Ingo Molnar committed Feb 9, 2009
1 parent 8630a85 commit 4ae05ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92e2d508464b6293ad274fb606f766a458894142
refs/heads/master: 6cd61c0baa8bce32271226198b46c67a7a05d108
9 changes: 9 additions & 0 deletions trunk/include/linux/elfcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ static inline void elf_core_copy_regs(elf_gregset_t *elfregs, struct pt_regs *re
#endif
}

static inline void elf_core_copy_kernel_regs(elf_gregset_t *elfregs, struct pt_regs *regs)
{
#ifdef ELF_CORE_COPY_KERNEL_REGS
ELF_CORE_COPY_KERNEL_REGS((*elfregs), regs);
#else
elf_core_copy_regs(elfregs, regs);
#endif
}

static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t* elfregs)
{
#ifdef ELF_CORE_COPY_TASK_REGS
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ void crash_save_cpu(struct pt_regs *regs, int cpu)
return;
memset(&prstatus, 0, sizeof(prstatus));
prstatus.pr_pid = current->pid;
elf_core_copy_regs(&prstatus.pr_reg, regs);
elf_core_copy_kernel_regs(&prstatus.pr_reg, regs);
buf = append_elf_note(buf, KEXEC_CORE_NOTE_NAME, NT_PRSTATUS,
&prstatus, sizeof(prstatus));
final_note(buf);
Expand Down

0 comments on commit 4ae05ad

Please sign in to comment.