diff options
-rw-r--r-- | tools/testing/selftests/rseq/rseq-s390.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/testing/selftests/rseq/rseq-s390.h b/tools/testing/selftests/rseq/rseq-s390.h index 7c4f3a70b6c7..1d05c5187ae6 100644 --- a/tools/testing/selftests/rseq/rseq-s390.h +++ b/tools/testing/selftests/rseq/rseq-s390.h | |||
@@ -1,6 +1,13 @@ | |||
1 | /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ | 1 | /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ |
2 | 2 | ||
3 | #define RSEQ_SIG 0x53053053 | 3 | /* |
4 | * RSEQ_SIG uses the trap4 instruction. As Linux does not make use of the | ||
5 | * access-register mode nor the linkage stack this instruction will always | ||
6 | * cause a special-operation exception (the trap-enabled bit in the DUCT | ||
7 | * is and will stay 0). The instruction pattern is | ||
8 | * b2 ff 0f ff trap4 4095(%r0) | ||
9 | */ | ||
10 | #define RSEQ_SIG 0xB2FF0FFF | ||
4 | 11 | ||
5 | #define rseq_smp_mb() __asm__ __volatile__ ("bcr 15,0" ::: "memory") | 12 | #define rseq_smp_mb() __asm__ __volatile__ ("bcr 15,0" ::: "memory") |
6 | #define rseq_smp_rmb() rseq_smp_mb() | 13 | #define rseq_smp_rmb() rseq_smp_mb() |