summaryrefslogtreecommitdiff
path: root/arch/c6x/include
diff options
context:
space:
mode:
authorRuss Dill <Russ.Dill@ti.com>2013-09-06 15:03:56 -0700
committer黄涛 <huangtao@rock-chips.com>2013-11-21 13:39:20 +0800
commit49d083bd72f8fe93b1d76078be1da897f5e41e98 (patch)
treed92f2b9385272b730dbff44862a28e29f9c4f5ba /arch/c6x/include
parent6e701bfc17f52d4a36802976ad6baa5ae8b4639d (diff)
asm-generic: fncpy: Add function copying macros
Under certain arches (ARM) function pointers cannot be used naively. Specifically, for thumb functions, their 0 bit is set, but they are contained on a word aligned address. Add a fncpy macro to perform function copies correctly along with two helpers, fnptr_to_address, and fnptr_translate. Signed-off-by: Russ Dill <Russ.Dill@ti.com>
Diffstat (limited to 'arch/c6x/include')
-rw-r--r--arch/c6x/include/asm/fncpy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/c6x/include/asm/fncpy.h b/arch/c6x/include/asm/fncpy.h
new file mode 100644
index 000000000000..ee4741c11b1d
--- /dev/null
+++ b/arch/c6x/include/asm/fncpy.h
@@ -0,0 +1 @@
+#include <asm-generic/fncpy.h>