mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
MDEV-8684: Use POWER wrappers rather than direct asm
i.e. __ppc_set_ppr_low rather than 'or 1,1,1'
This commit is contained in:
parent
64824a760d
commit
26c38de804
3 changed files with 9 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue