diff options
Diffstat (limited to 'meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-NIOS2-architecture.patch')
-rw-r--r-- | meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-NIOS2-architecture.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-NIOS2-architecture.patch b/meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-NIOS2-architecture.patch new file mode 100644 index 0000000000..ae8562a231 --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-NIOS2-architecture.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 34b0d9b1a32fb404a30327a7ae8931c7c75583bf Mon Sep 17 00:00:00 2001 | ||
2 | From: Marek Vasut <marex@denx.de> | ||
3 | Date: Tue, 9 Feb 2016 02:00:29 +0100 | ||
4 | Subject: [PATCH] Add rmb() definition for NIOS2 architecture | ||
5 | |||
6 | Signed-off-by: Marek Vasut <marex@denx.de> | ||
7 | Upstream-Status: Submitted [ http://marc.info/?l=oprofile-list&m=145501915931874&w=2 ] | ||
8 | --- | ||
9 | libperf_events/operf_utils.h | 5 +++++ | ||
10 | 1 file changed, 5 insertions(+) | ||
11 | |||
12 | diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h | ||
13 | index 32954cc..8270e53 100644 | ||
14 | --- a/libperf_events/operf_utils.h | ||
15 | +++ b/libperf_events/operf_utils.h | ||
16 | @@ -178,6 +178,11 @@ void op_release_resources(void); | ||
17 | #define cpu_relax() asm volatile("" ::: "memory") | ||
18 | #endif | ||
19 | |||
20 | +#ifdef __nios2__ | ||
21 | +#define rmb() asm volatile("" ::: "memory") | ||
22 | +#define cpu_relax() asm volatile("" ::: "memory") | ||
23 | +#endif | ||
24 | + | ||
25 | #ifdef __tile__ | ||
26 | #include <asm/unistd.h> | ||
27 | #define rmb() __insn_mf() | ||
28 | -- | ||
29 | 2.7.0 | ||
30 | |||