--- arch/i386/kernel/traps.c.old 2004-10-11 13:22:01.000000000 +0200 +++ arch/i386/kernel/traps.c 2004-10-11 13:39:24.000000000 +0200 @@ -91,6 +91,10 @@ asmlinkage void spurious_interrupt_bug(void); asmlinkage void machine_check(void); +#ifdef CONFIG_KGDB +extern void sysenter_past_esp(void); +#endif + static int kstack_depth_to_print = 24; struct notifier_block *i386die_chain; static spinlock_t die_notifier_lock = SPIN_LOCK_UNLOCKED; @@ -117,7 +121,6 @@ unsigned long addr; #ifdef CONFIG_KGDB -extern void sysenter_past_esp(void); #include #include void set_intr_gate(unsigned int n, void *addr);