s390/syscall: fix single stepped system calls
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 20 Feb 2017 08:51:36 +0000 (09:51 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 20 Feb 2017 11:38:01 +0000 (12:38 +0100)
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>
arch/s390/kernel/entry.S

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