X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Flinux%2Felfcore.h;h=00d6a68d04215e7e289a3451ca4a8f714e2b6975;hb=dc7a08166f3a5f23e79e839a8a88849bd3397c32;hp=03ec167798022ffa08865662c2e0b69297f56c54;hpb=a65e7bfcd74e4c0939f235d2bf9f48ddb3a57991;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h index 03ec167..00d6a68 100644 --- a/include/linux/elfcore.h +++ b/include/linux/elfcore.h @@ -122,10 +122,9 @@ static inline void elf_core_copy_kernel_regs(elf_gregset_t *elfregs, struct pt_r static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t* elfregs) { -#ifdef ELF_CORE_COPY_TASK_REGS - +#if defined (ELF_CORE_COPY_TASK_REGS) return ELF_CORE_COPY_TASK_REGS(t, elfregs); -#else +#elif defined (task_pt_regs) elf_core_copy_regs(elfregs, task_pt_regs(t)); #endif return 0;