@@ -296,13 +296,6 @@ static int __poke_user(struct task_struct *child, addr_t addr, addr_t data)
296296 ((data & PSW_MASK_EA ) && !(data & PSW_MASK_BA ))))
297297 /* Invalid psw mask. */
298298 return - EINVAL ;
299- if (addr == (addr_t ) & dummy -> regs .psw .addr )
300- /*
301- * The debugger changed the instruction address,
302- * reset system call restart, see signal.c:do_signal
303- */
304- task_thread_info (child )-> system_call = 0 ;
305-
306299 * (addr_t * )((addr_t ) & task_pt_regs (child )-> psw + addr ) = data ;
307300
308301 } else if (addr < (addr_t ) (& dummy -> regs .orig_gpr2 )) {
@@ -614,11 +607,6 @@ static int __poke_user_compat(struct task_struct *child,
614607 /* Transfer 31 bit amode bit to psw mask. */
615608 regs -> psw .mask = (regs -> psw .mask & ~PSW_MASK_BA ) |
616609 (__u64 )(tmp & PSW32_ADDR_AMODE );
617- /*
618- * The debugger changed the instruction address,
619- * reset system call restart, see signal.c:do_signal
620- */
621- task_thread_info (child )-> system_call = 0 ;
622610 } else {
623611 /* gpr 0-15 */
624612 * (__u32 * )((addr_t ) & regs -> psw + addr * 2 + 4 ) = tmp ;
@@ -905,6 +893,14 @@ static int s390_last_break_get(struct task_struct *target,
905893 return 0 ;
906894}
907895
896+ static int s390_last_break_set (struct task_struct * target ,
897+ const struct user_regset * regset ,
898+ unsigned int pos , unsigned int count ,
899+ const void * kbuf , const void __user * ubuf )
900+ {
901+ return 0 ;
902+ }
903+
908904#endif
909905
910906static int s390_system_call_get (struct task_struct * target ,
@@ -951,6 +947,7 @@ static const struct user_regset s390_regsets[] = {
951947 .size = sizeof (long ),
952948 .align = sizeof (long ),
953949 .get = s390_last_break_get ,
950+ .set = s390_last_break_set ,
954951 },
955952#endif
956953 [REGSET_SYSTEM_CALL ] = {
@@ -1116,6 +1113,14 @@ static int s390_compat_last_break_get(struct task_struct *target,
11161113 return 0 ;
11171114}
11181115
1116+ static int s390_compat_last_break_set (struct task_struct * target ,
1117+ const struct user_regset * regset ,
1118+ unsigned int pos , unsigned int count ,
1119+ const void * kbuf , const void __user * ubuf )
1120+ {
1121+ return 0 ;
1122+ }
1123+
11191124static const struct user_regset s390_compat_regsets [] = {
11201125 [REGSET_GENERAL ] = {
11211126 .core_note_type = NT_PRSTATUS ,
@@ -1139,6 +1144,7 @@ static const struct user_regset s390_compat_regsets[] = {
11391144 .size = sizeof (long ),
11401145 .align = sizeof (long ),
11411146 .get = s390_compat_last_break_get ,
1147+ .set = s390_compat_last_break_set ,
11421148 },
11431149 [REGSET_SYSTEM_CALL ] = {
11441150 .core_note_type = NT_S390_SYSTEM_CALL ,
0 commit comments