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
f0d0ddc9
Commit
f0d0ddc9
authored
Apr 23, 2024
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-33447 fixup for POWER
parent
02715174
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
storage/innobase/sync/cache.cc
storage/innobase/sync/cache.cc
+2
-2
No files found.
storage/innobase/sync/cache.cc
View file @
f0d0ddc9
...
...
@@ -103,7 +103,7 @@ const pmem_control pmem;
#else
void
pmem_persist
(
const
void
*
buf
,
size_t
size
)
{
# ifdef __
PPC
__
# ifdef __
powerpc64
__
for
(
uintptr_t
u
=
uintptr_t
(
buf
)
&
~
(
CPU_LEVEL1_DCACHE_LINESIZE
),
end
=
uintptr_t
(
buf
)
+
size
;
u
<
end
;
u
+=
CPU_LEVEL1_DCACHE_LINESIZE
)
...
...
@@ -115,7 +115,7 @@ void pmem_persist(const void *buf, size_t size)
Let us hope that having a recent enough GCC is an adequate proxy
for having a recent enough assembler. */
# if __GNUC__ >= 11 || (defined __clang_major__ && __clang_major__ >= 12)
__asm__
__volatile__
(
"dcbstps 0,%0"
::
r
(
u
)
:
"memory"
);
__asm__
__volatile__
(
"dcbstps 0,%0"
::
"r"
(
u
)
:
"memory"
);
# else
__asm__
__volatile__
(
".long (0x7cc000AC | %0 << 11)"
::
"r"
(
u
)
:
"memory"
);
# endif
...
...
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