summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-02-10 01:04:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-11 12:27:49 +0000
commita1ad3d05870eb6d922f108721301cd81c41f1d99 (patch)
tree91362d5f22e799b2e477ec22f3511672a89770a9 /meta/recipes-kernel
parentfd7dd07e66a16e26b6b01af38c5be26244103d2c (diff)
downloadpoky-a1ad3d05870eb6d922f108721301cd81c41f1d99.tar.gz
oprofile: Add nios2 support
Add support for the nios2 architecture. (From OE-Core rev: a4292d508c2747d2543302404d877fff58f8b1d1) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Ross Burton <ross.burton@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/oprofile/oprofile.inc3
-rw-r--r--meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-NIOS2-architecture.patch30
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
28SRC_URI_append_libc-musl = " file://musl.patch" 29SRC_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 @@
1From 34b0d9b1a32fb404a30327a7ae8931c7c75583bf Mon Sep 17 00:00:00 2001
2From: Marek Vasut <marex@denx.de>
3Date: Tue, 9 Feb 2016 02:00:29 +0100
4Subject: [PATCH] Add rmb() definition for NIOS2 architecture
5
6Signed-off-by: Marek Vasut <marex@denx.de>
7Upstream-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
12diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h
13index 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--
292.7.0
30