diff options
author | Daniel Black <daniel.black@au.ibm.com> | 2016-04-01 09:03:57 +1100 |
---|---|---|
committer | Daniel Black <daniel.black@au.ibm.com> | 2016-04-01 09:38:17 +1100 |
commit | 26c38de804ecb87eae7fbe6ac32dadebb7803b4d (patch) | |
tree | c8e1e0b69d9e2c29bd4fe3bdd64a0af61ee78e43 /configure.cmake | |
parent | 64824a760d3ee4715d301dcdff541b66fac32992 (diff) | |
download | mariadb-git-26c38de804ecb87eae7fbe6ac32dadebb7803b4d.tar.gz |
MDEV-8684: Use POWER wrappers rather than direct asm
i.e. __ppc_set_ppr_low rather than 'or 1,1,1'
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.cmake b/configure.cmake index acb80965a64..5b8bc3688c7 100644 --- a/configure.cmake +++ b/configure.cmake @@ -857,10 +857,11 @@ IF(NOT CMAKE_CROSSCOMPILING AND NOT MSVC) ENDIF() IF (NOT HAVE_PAUSE_INSTRUCTION) CHECK_C_SOURCE_COMPILES(" + #include <sys/platform/ppc.h> int main() { - __asm__ __volatile__ (\"or 1,1,1\"); - __asm__ __volatile__ (\"or 2,2,2\"); + __ppc_set_ppr_low(); + __ppc_set_ppr_med(); return 0; } " HAVE_HMT_PRIORITY_INSTRUCTION) |