diff options
| -rw-r--r-- | tools/testing/selftests/rseq/rseq-ppc.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/testing/selftests/rseq/rseq-ppc.h b/tools/testing/selftests/rseq/rseq-ppc.h index 9df18487fa9f..76be90196fe4 100644 --- a/tools/testing/selftests/rseq/rseq-ppc.h +++ b/tools/testing/selftests/rseq/rseq-ppc.h | |||
| @@ -6,7 +6,15 @@ | |||
| 6 | * (C) Copyright 2016-2018 - Boqun Feng <boqun.feng@gmail.com> | 6 | * (C) Copyright 2016-2018 - Boqun Feng <boqun.feng@gmail.com> |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #define RSEQ_SIG 0x53053053 | 9 | /* |
| 10 | * RSEQ_SIG is used with the following trap instruction: | ||
| 11 | * | ||
| 12 | * powerpc-be: 0f e5 00 0b twui r5,11 | ||
| 13 | * powerpc64-le: 0b 00 e5 0f twui r5,11 | ||
| 14 | * powerpc64-be: 0f e5 00 0b twui r5,11 | ||
| 15 | */ | ||
| 16 | |||
| 17 | #define RSEQ_SIG 0x0fe5000b | ||
| 10 | 18 | ||
| 11 | #define rseq_smp_mb() __asm__ __volatile__ ("sync" ::: "memory", "cc") | 19 | #define rseq_smp_mb() __asm__ __volatile__ ("sync" ::: "memory", "cc") |
| 12 | #define rseq_smp_lwsync() __asm__ __volatile__ ("lwsync" ::: "memory", "cc") | 20 | #define rseq_smp_lwsync() __asm__ __volatile__ ("lwsync" ::: "memory", "cc") |
