aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/processor.h2
-rw-r--r--arch/x86/kernel/kgdb.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index a6732ff7b016..a9ba7436821e 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -427,7 +427,9 @@ struct thread_struct {
427 unsigned short fsindex; 427 unsigned short fsindex;
428 unsigned short gsindex; 428 unsigned short gsindex;
429#endif 429#endif
430#ifdef CONFIG_X86_32
430 unsigned long ip; 431 unsigned long ip;
432#endif
431#ifdef CONFIG_X86_64 433#ifdef CONFIG_X86_64
432 unsigned long fs; 434 unsigned long fs;
433#endif 435#endif
diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index eedfaebe1063..d07706f1976a 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -141,7 +141,7 @@ void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p)
141 gdb_regs32[GDB_PS] = *(unsigned long *)(p->thread.sp + 8); 141 gdb_regs32[GDB_PS] = *(unsigned long *)(p->thread.sp + 8);
142 gdb_regs32[GDB_CS] = __KERNEL_CS; 142 gdb_regs32[GDB_CS] = __KERNEL_CS;
143 gdb_regs32[GDB_SS] = __KERNEL_DS; 143 gdb_regs32[GDB_SS] = __KERNEL_DS;
144 gdb_regs[GDB_PC] = p->thread.ip; 144 gdb_regs[GDB_PC] = 0;
145 gdb_regs[GDB_R8] = 0; 145 gdb_regs[GDB_R8] = 0;
146 gdb_regs[GDB_R9] = 0; 146 gdb_regs[GDB_R9] = 0;
147 gdb_regs[GDB_R10] = 0; 147 gdb_regs[GDB_R10] = 0;