The patch titled i386-pda: Store the interrupt regs pointer in the PDA has been added to the -mm tree. Its filename is i386-pda-implement-current-with-the-pda-fix.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: i386-pda: Store the interrupt regs pointer in the PDA From: Jeremy Fitzhardinge <jeremy@xxxxxxxx> Signed-off-by: Jeremy Fitzhardinge <jeremy@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- include/asm-i386/irq_regs.h | 28 +++++++++++++++++++++++++++- include/asm-i386/pda.h | 1 + 2 files changed, 28 insertions(+), 1 deletion(-) diff -puN include/asm-i386/irq_regs.h~i386-pda-implement-current-with-the-pda-fix include/asm-i386/irq_regs.h --- a/include/asm-i386/irq_regs.h~i386-pda-implement-current-with-the-pda-fix +++ a/include/asm-i386/irq_regs.h @@ -1 +1,27 @@ -#include <asm-generic/irq_regs.h> +/* + * Per-cpu current frame pointer - the location of the last exception frame on + * the stack, stored in the PDA. + * + * Jeremy Fitzhardinge <jeremy@xxxxxxxx> + */ +#ifndef _ASM_I386_IRQ_REGS_H +#define _ASM_I386_IRQ_REGS_H + +#include <asm/pda.h> + +static inline struct pt_regs *get_irq_regs(void) +{ + return read_pda(irq_regs); +} + +static inline struct pt_regs *set_irq_regs(struct pt_regs *new_regs) +{ + struct pt_regs *old_regs; + + old_regs = read_pda(irq_regs); + write_pda(irq_regs, new_regs); + + return old_regs; +} + +#endif /* _ASM_I386_IRQ_REGS_H */ diff -puN include/asm-i386/pda.h~i386-pda-implement-current-with-the-pda-fix include/asm-i386/pda.h --- a/include/asm-i386/pda.h~i386-pda-implement-current-with-the-pda-fix +++ a/include/asm-i386/pda.h @@ -14,6 +14,7 @@ struct i386_pda int cpu_number; struct task_struct *pcurrent; /* current process */ + struct pt_regs *irq_regs; }; extern struct i386_pda *_cpu_pda[]; _ Patches currently in -mm which might be from jeremy@xxxxxxxx are i386-use-asm-offsets-for-the-offsets-of-registers-into-the-pt_regs-struct-rather-than-having-hard-coded-constants.patch i386-pda-basic-definitions-for-i386-pda.patch i386-pda-initialize-the-per-cpu-data-area.patch i386-pda-initialize-the-per-cpu-data-area-voyager-fix.patch i386-pda-use-%gs-as-the-pda-base-segment-in-the-kernel.patch i386-pda-fix-places-where-using-%gs-changes-the-usermode-abi.patch i386-pda-update-sys_vm86-to-cope-with-changed-pt_regs-and-%gs-usage.patch i386-pda-implement-smp_processor_id-with-the-pda.patch i386-pda-implement-current-with-the-pda.patch i386-pda-implement-current-with-the-pda-fix.patch fix-fake-return-address.patch generic-bug-implementation.patch generic-bug-for-i386.patch generic-bug-for-x86-64.patch uml-add-generic-bug-support.patch use-generic-bug-for-ppc.patch bug-test-1.patch time-uninline-jiffiesh-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html