patch-2.3.11 linux/arch/arm/kernel/process.c
Next file: linux/arch/arm/kernel/ptrace.c
Previous file: linux/arch/arm/kernel/leds-footbridge.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Mon Jul 19 09:52:57 1999
- Orig file:
v2.3.10/linux/arch/arm/kernel/process.c
- Orig date:
Thu Jul 8 15:42:19 1999
diff -u --recursive --new-file v2.3.10/linux/arch/arm/kernel/process.c linux/arch/arm/kernel/process.c
@@ -209,8 +209,7 @@
{
int i;
- for (i = 0; i < NR_DEBUGS; i++)
- current->tss.debug[i] = 0;
+ memset(¤t->tss.debug, 0, sizeof(current->tss.debug));
current->used_math = 0;
current->flags &= ~PF_USEDFPU;
}
@@ -255,8 +254,6 @@
*/
void dump_thread(struct pt_regs * regs, struct user * dump)
{
- int i;
-
dump->magic = CMAGIC;
dump->start_code = current->mm->start_code;
dump->start_stack = regs->ARM_sp & ~(PAGE_SIZE - 1);
@@ -265,8 +262,11 @@
dump->u_dsize = (current->mm->brk - current->mm->start_data + PAGE_SIZE - 1) >> PAGE_SHIFT;
dump->u_ssize = 0;
- for (i = 0; i < NR_DEBUGS; i++)
- dump->u_debugreg[i] = current->tss.debug[i];
+ dump->u_debugreg[0] = current->tss.debug.bp[0].address;
+ dump->u_debugreg[1] = current->tss.debug.bp[1].address;
+ dump->u_debugreg[2] = current->tss.debug.bp[0].insn;
+ dump->u_debugreg[3] = current->tss.debug.bp[1].insn;
+ dump->u_debugreg[4] = current->tss.debug.nsaved;
if (dump->start_stack < 0x04000000)
dump->u_ssize = (0x04000000 - dump->start_stack) >> PAGE_SHIFT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)