patch-2.1.2 linux/arch/i386/kernel/process.c
Next file: linux/arch/i386/kernel/ptrace.c
Previous file: linux/arch/i386/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Tue Oct 8 18:49:00 1996
- Orig file:
v2.1.1/linux/arch/i386/kernel/process.c
- Orig date:
Wed Sep 25 12:53:02 1996
diff -u --recursive --new-file v2.1.1/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -225,17 +225,16 @@
void show_regs(struct pt_regs * regs)
{
printk("\n");
- printk("EIP: %04x:[<%08lx>]",0xffff & regs->cs,regs->eip);
- if (regs->cs & 3)
- printk(" ESP: %04x:%08lx",0xffff & regs->ss,regs->esp);
+ printk("EIP: %04x:[<%08lx>]",0xffff & regs->xcs,regs->eip);
+ if (regs->xcs & 3)
+ printk(" ESP: %04x:%08lx",0xffff & regs->xss,regs->esp);
printk(" EFLAGS: %08lx\n",regs->eflags);
printk("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
regs->eax,regs->ebx,regs->ecx,regs->edx);
printk("ESI: %08lx EDI: %08lx EBP: %08lx",
regs->esi, regs->edi, regs->ebp);
- printk(" DS: %04x ES: %04x FS: %04x GS: %04x\n",
- 0xffff & regs->ds,0xffff & regs->es,
- 0xffff & regs->fs,0xffff & regs->gs);
+ printk(" DS: %04x ES: %04x\n",
+ 0xffff & regs->xds,0xffff & regs->xes);
}
/*
@@ -387,7 +386,23 @@
if (dump->start_stack < TASK_SIZE)
dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT;
- dump->regs = *regs;
+ dump->regs.ebx = regs->ebx;
+ dump->regs.ecx = regs->ecx;
+ dump->regs.edx = regs->edx;
+ dump->regs.esi = regs->esi;
+ dump->regs.edi = regs->edi;
+ dump->regs.ebp = regs->ebp;
+ dump->regs.eax = regs->eax;
+ dump->regs.ds = regs->xds;
+ dump->regs.es = regs->xes;
+ __asm__("mov %%fs,%0":"=r" (dump->regs.fs));
+ __asm__("mov %%gs,%0":"=r" (dump->regs.gs));
+ dump->regs.orig_eax = regs->orig_eax;
+ dump->regs.eip = regs->eip;
+ dump->regs.cs = regs->xcs;
+ dump->regs.eflags = regs->eflags;
+ dump->regs.esp = regs->esp;
+ dump->regs.ss = regs->xss;
dump->u_fpvalid = dump_fpu (regs, &dump->i387);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov