diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-kernel/sysprof/files | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-kernel/sysprof/files')
-rw-r--r-- | meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch | 22 | ||||
-rw-r--r-- | meta/recipes-kernel/sysprof/files/rmb-arm.patch | 21 | ||||
-rw-r--r-- | meta/recipes-kernel/sysprof/files/rmb-mips.patch | 22 |
3 files changed, 65 insertions, 0 deletions
diff --git a/meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch b/meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch new file mode 100644 index 0000000000..dcc2cbe67c --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | On uclibc elf.h does not have GNU extentions but we need this define | ||
2 | so we define it locally if its not getting it from elf.h | ||
3 | |||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Index: git/elfparser.h | ||
9 | =================================================================== | ||
10 | --- git.orig/elfparser.h 2011-07-16 18:57:41.000000000 -0700 | ||
11 | +++ git/elfparser.h 2011-07-16 20:28:54.733829895 -0700 | ||
12 | @@ -17,6 +17,10 @@ | ||
13 | */ | ||
14 | #include <glib.h> | ||
15 | |||
16 | +#ifndef NT_GNU_BUILD_ID | ||
17 | +#define NT_GNU_BUILD_ID 3 | ||
18 | +#endif | ||
19 | + | ||
20 | typedef struct ElfSym ElfSym; | ||
21 | typedef struct ElfParser ElfParser; | ||
22 | |||
diff --git a/meta/recipes-kernel/sysprof/files/rmb-arm.patch b/meta/recipes-kernel/sysprof/files/rmb-arm.patch new file mode 100644 index 0000000000..c53ac6427c --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/rmb-arm.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | |||
2 | Upstream-Status: Pending | ||
3 | |||
4 | Index: git/util.h | ||
5 | =================================================================== | ||
6 | --- git.orig/util.h 2010-12-07 22:41:57.156243001 -0600 | ||
7 | +++ git/util.h 2010-12-07 22:43:47.616243002 -0600 | ||
8 | @@ -37,4 +37,13 @@ | ||
9 | #define cpu_relax() asm volatile("" ::: "memory"); | ||
10 | #endif | ||
11 | |||
12 | +#ifdef __arm__ | ||
13 | +/* | ||
14 | + * Use the __kuser_memory_barrier helper in the CPU helper page. See | ||
15 | + * arch/arm/kernel/entry-armv.S in the kernel source for details. | ||
16 | + */ | ||
17 | +#define rmb() ((void(*)(void))0xffff0fa0)() | ||
18 | +#define cpu_relax() asm volatile("":::"memory") | ||
19 | +#endif | ||
20 | + | ||
21 | #endif | ||
diff --git a/meta/recipes-kernel/sysprof/files/rmb-mips.patch b/meta/recipes-kernel/sysprof/files/rmb-mips.patch new file mode 100644 index 0000000000..e055b8ad8b --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/rmb-mips.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Index: git/util.h | ||
4 | =================================================================== | ||
5 | --- git.orig/util.h 2010-12-08 01:22:44.486243001 -0600 | ||
6 | +++ git/util.h 2010-12-08 01:23:27.836243001 -0600 | ||
7 | @@ -37,4 +37,15 @@ | ||
8 | #define cpu_relax() asm volatile("" ::: "memory"); | ||
9 | #endif | ||
10 | |||
11 | +#ifdef __mips__ | ||
12 | +#define rmb() asm volatile( \ | ||
13 | + ".set mips2\n\t" \ | ||
14 | + "sync\n\t" \ | ||
15 | + ".set mips0" \ | ||
16 | + : /* no output */ \ | ||
17 | + : /* no input */ \ | ||
18 | + : "memory") | ||
19 | +#define cpu_relax() asm volatile("" ::: "memory") | ||
20 | +#endif | ||
21 | + | ||
22 | #endif | ||