Explorar o código

s390/syscall: fix single stepped system calls

Fix PER tracing of system calls after git commit 34525e1f7e8dc478
"s390: store breaking event address only for program checks"
broke it.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Martin Schwidefsky %!s(int64=8) %!d(string=hai) anos
pai
achega
d24b98e3a9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      arch/s390/kernel/entry.S

+ 1 - 0
arch/s390/kernel/entry.S

@@ -545,6 +545,7 @@ ENTRY(pgm_check_handler)
 #
 #
 .Lpgm_svcper:
 .Lpgm_svcper:
 	mvc	__LC_RETURN_PSW(8),__LC_SVC_NEW_PSW
 	mvc	__LC_RETURN_PSW(8),__LC_SVC_NEW_PSW
+	lghi	%r13,__TASK_thread
 	larl	%r14,.Lsysc_per
 	larl	%r14,.Lsysc_per
 	stg	%r14,__LC_RETURN_PSW+8
 	stg	%r14,__LC_RETURN_PSW+8
 	lghi	%r14,_PIF_SYSCALL | _PIF_PER_TRAP
 	lghi	%r14,_PIF_SYSCALL | _PIF_PER_TRAP