From 3cc2b013d8f105ff299af3e9dc8830c7da82522c Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 28 Aug 2014 14:40:27 +0200 Subject: [PATCH] sysprof: patch for ARM to implement rmb --- srcpkgs/sysprof/patches/arm.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/sysprof/patches/arm.patch diff --git a/srcpkgs/sysprof/patches/arm.patch b/srcpkgs/sysprof/patches/arm.patch new file mode 100644 index 00000000000..58274c60913 --- /dev/null +++ b/srcpkgs/sysprof/patches/arm.patch @@ -0,0 +1,16 @@ +--- util.h 2010-12-07 22:41:57.156243001 -0600 ++++ util.h 2010-12-07 22:43:47.616243002 -0600 +@@ -37,4 +37,13 @@ + #define cpu_relax() asm volatile("" ::: "memory"); + #endif + ++#ifdef __arm__ ++/* ++ * Use the __kuser_memory_barrier helper in the CPU helper page. See ++ * arch/arm/kernel/entry-armv.S in the kernel source for details. ++ */ ++#define rmb() ((void(*)(void))0xffff0fa0)() ++#define cpu_relax() asm volatile("":::"memory") ++#endif ++ + #endif