patch-2.4.4 linux/arch/s390x/kernel/ptrace.c
Next file: linux/arch/s390x/kernel/s390_ext.c
Previous file: linux/arch/s390x/kernel/process.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Wed Apr 11 19:02:29 2001
- Orig file:
v2.4.3/linux/arch/s390x/kernel/ptrace.c
- Orig date:
Tue Feb 13 14:13:44 2001
diff -u --recursive --new-file v2.4.3/linux/arch/s390x/kernel/ptrace.c linux/arch/s390x/kernel/ptrace.c
@@ -153,7 +153,7 @@
useraddr = 2 * useraddr + sizeof(addr_t) / 2;
else if(useraddr < PT_ACR0 / 2 + (PT_ORIGGPR2 - PT_ACR0))
useraddr = useraddr + PT_ACR0 / 2;
- else if(useraddr < PT_ACR0 / 2 + (sizeof(user_regs_struct) - sizeof(addr_t) / 2 - PT_ACR0))
+ else if(useraddr < PT_ACR0 / 2 + (sizeof(struct user_regs_struct) - sizeof(addr_t) / 2 - PT_ACR0))
useraddr = useraddr + PT_ACR0 / 2 + sizeof(addr_t) / 2;
}
#endif
@@ -174,15 +174,15 @@
{
copymax=PT_PSWMASK;
}
- else if(useraddr<(PT_PSWMASK+PSW_MASK_SIZE))
+ else if(useraddr<(PT_PSWMASK+8))
{
- copymax=(PT_PSWMASK+PSW_MASK_SIZE);
+ copymax=(PT_PSWMASK+8);
if(writingtouser)
mask=PSW_MASK_DEBUGCHANGE;
}
- else if(useraddr<(PT_PSWADDR+PSW_ADDR_SIZE))
+ else if(useraddr<(PT_PSWADDR+8))
{
- copymax=PT_PSWADDR+PSW_ADDR_SIZE;
+ copymax=PT_PSWADDR+8;
mask=PSW_ADDR_DEBUGCHANGE;
}
else
@@ -194,9 +194,9 @@
copymax=(PT_FPR15+sizeof(freg_t));
realuseraddr=(addr_t)&(((u8 *)&task->thread.fp_regs)[useraddr-PT_FPC]);
}
- else if(useraddr<sizeof(user_regs_struct))
+ else if(useraddr<sizeof(struct user_regs_struct))
{
- copymax=sizeof(user_regs_struct);
+ copymax=sizeof(struct user_regs_struct);
realuseraddr=(addr_t)&(((u8 *)&task->thread.per_info)[useraddr-PT_CR_9]);
}
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)