diff options
| -rw-r--r-- | meta/recipes-kernel/oprofile/oprofile.inc | 3 | ||||
| -rw-r--r-- | meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-NIOS2-architecture.patch | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc index faf0e53fe5..cf3ad435cf 100644 --- a/meta/recipes-kernel/oprofile/oprofile.inc +++ b/meta/recipes-kernel/oprofile/oprofile.inc | |||
| @@ -23,7 +23,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ | |||
| 23 | file://automake-foreign.patch \ | 23 | file://automake-foreign.patch \ |
| 24 | file://oprofile-cross-compile-tests.patch \ | 24 | file://oprofile-cross-compile-tests.patch \ |
| 25 | file://run-ptest \ | 25 | file://run-ptest \ |
| 26 | file://root-home-dir.patch" | 26 | file://root-home-dir.patch \ |
| 27 | file://0001-Add-rmb-definition-for-NIOS2-architecture.patch" | ||
| 27 | 28 | ||
| 28 | SRC_URI_append_libc-musl = " file://musl.patch" | 29 | SRC_URI_append_libc-musl = " file://musl.patch" |
| 29 | 30 | ||
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 | |||
