Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
26c38de8
Commit
26c38de8
authored
Apr 01, 2016
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8684: Use POWER wrappers rather than direct asm
i.e. __ppc_set_ppr_low rather than 'or 1,1,1'
parent
64824a76
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
configure.cmake
configure.cmake
+3
-2
storage/innobase/include/ut0ut.h
storage/innobase/include/ut0ut.h
+3
-2
storage/xtradb/include/ut0ut.h
storage/xtradb/include/ut0ut.h
+3
-2
No files found.
configure.cmake
View file @
26c38de8
...
@@ -857,10 +857,11 @@ IF(NOT CMAKE_CROSSCOMPILING AND NOT MSVC)
...
@@ -857,10 +857,11 @@ IF(NOT CMAKE_CROSSCOMPILING AND NOT MSVC)
ENDIF
()
ENDIF
()
IF
(
NOT HAVE_PAUSE_INSTRUCTION
)
IF
(
NOT HAVE_PAUSE_INSTRUCTION
)
CHECK_C_SOURCE_COMPILES
(
"
CHECK_C_SOURCE_COMPILES
(
"
#include <sys/platform/ppc.h>
int main()
int main()
{
{
__
asm__ __volatile__ (
\"
or 1,1,1
\"
);
__
ppc_set_ppr_low(
);
__
asm__ __volatile__ (
\"
or 2,2,2
\"
);
__
ppc_set_ppr_med(
);
return 0;
return 0;
}
}
"
HAVE_HMT_PRIORITY_INSTRUCTION
)
"
HAVE_HMT_PRIORITY_INSTRUCTION
)
...
...
storage/innobase/include/ut0ut.h
View file @
26c38de8
...
@@ -100,8 +100,9 @@ struct ut_when_dtor {
...
@@ -100,8 +100,9 @@ struct ut_when_dtor {
#define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
#define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
# if defined(HAVE_HMT_PRIORITY_INSTRUCTION)
# if defined(HAVE_HMT_PRIORITY_INSTRUCTION)
# define UT_LOW_PRIORITY_CPU() __asm__ __volatile__ ("or 1,1,1")
#include <sys/platform/ppc.h>
# define UT_RESUME_PRIORITY_CPU() __asm__ __volatile__ ("or 2,2,2")
# define UT_LOW_PRIORITY_CPU() __ppc_set_ppr_low()
# define UT_RESUME_PRIORITY_CPU() __ppc_set_ppr_med()
# else
# else
# define UT_LOW_PRIORITY_CPU() ((void)0)
# define UT_LOW_PRIORITY_CPU() ((void)0)
# define UT_RESUME_PRIORITY_CPU() ((void)0)
# define UT_RESUME_PRIORITY_CPU() ((void)0)
...
...
storage/xtradb/include/ut0ut.h
View file @
26c38de8
...
@@ -97,8 +97,9 @@ struct ut_when_dtor {
...
@@ -97,8 +97,9 @@ struct ut_when_dtor {
#define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
#define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
# if defined(HAVE_HMT_PRIORITY_INSTRUCTION)
# if defined(HAVE_HMT_PRIORITY_INSTRUCTION)
# define UT_LOW_PRIORITY_CPU() __asm__ __volatile__ ("or 1,1,1")
#include <sys/platform/ppc.h>
# define UT_RESUME_PRIORITY_CPU() __asm__ __volatile__ ("or 2,2,2")
# define UT_LOW_PRIORITY_CPU() __ppc_set_ppr_low()
# define UT_RESUME_PRIORITY_CPU() __ppc_set_ppr_med()
# else
# else
# define UT_LOW_PRIORITY_CPU() ((void)0)
# define UT_LOW_PRIORITY_CPU() ((void)0)
# define UT_RESUME_PRIORITY_CPU() ((void)0)
# define UT_RESUME_PRIORITY_CPU() ((void)0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment