Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
F
FreeBSD ports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
FreeBSD
FreeBSD ports
Commits
ab9e723e
Commit
ab9e723e
authored
3 years ago
by
Piotr Kubaj
Browse files
Options
Downloads
Patches
Plain Diff
databases/mariadb104-server: fix build on powerpc64le
Same fix as for databases/mariadb105-server.
parent
09b0d776
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
databases/mariadb104-server/files/patch-include_my__cpu.h
+48
-0
48 additions, 0 deletions
databases/mariadb104-server/files/patch-include_my__cpu.h
with
48 additions
and
0 deletions
databases/mariadb104-server/files/patch-include_my__cpu.h
0 → 100644
+
48
−
0
View file @
ab9e723e
---
include
/
my_cpu
.
h
.
orig
2021
-
09
-
27
13
:
32
:
48
UTC
+++
include
/
my_cpu
.
h
@@
-
23
,
7
+
23
,
8
@@
The
defines
are
the
same
ones
used
by
the
linux
kernel
*/
-
#
ifdef
_ARCH_PWR8
+
#
if
defined
(
_ARCH_PWR8
)
+
#
if
defined
(
linux
)
#include
<sys/platform/ppc.h>
/* Very low priority */
#define HMT_very_low() __ppc_set_ppr_very_low()
@@
-
37
,
6
+
38
,
22
@@
#define HMT_medium_high() __ppc_set_ppr_med_high()
/* High priority */
#define HMT_high() asm volatile("or 3,3,3")
+
#
elif
defined
(
__FreeBSD__
)
+
#
include
<
sys
/
types
.
h
>
+
#
include
<
sys
/
sysctl
.
h
>
+
/* Very low priority */
+
#
define
HMT_very_low
()
__asm__
volatile
(
"or 31,31,31"
)
+
/* Low priority */
+
#
define
HMT_low
()
__asm__
volatile
(
"or 1,1,1"
)
+
/* Medium low priority */
+
#
define
HMT_medium_low
()
__asm__
volatile
(
"or 6,6,6"
)
+
/* Medium priority */
+
#
define
HMT_medium
()
__asm__
volatile
(
"or 2,2,2"
)
+
/* Medium high priority */
+
#
define
HMT_medium_high
()
__asm__
volatile
(
"or 5,5,5"
)
+
/* High priority */
+
#
define
HMT_high
()
asm
volatile
(
"or 3,3,3"
)
+
#
endif
#else
#define HMT_very_low()
#define HMT_low()
@@
-
81
,
7
+
98
,
12
@@
static
inline
void
MY_RELAX_CPU
(
void
)
__asm__
__volatile__
(
"pause"
);
#endif
#elif defined(_ARCH_PWR8)
+
#
if
defined
(
linux
)
__ppc_get_timebase
();
+
#
elif
defined
(
__FreeBSD__
)
+
uint64_t
__tb
;
+
__asm__
volatile
(
"mfspr %0, 268"
:
"=r"
(
__tb
));
+
#
endif
#elif defined __GNUC__ && (defined __arm__ || defined __aarch64__)
/* Mainly, prevent the compiler from optimizing away delay loops */
#ifdef _aarch64_
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment