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> |
||
|---|---|---|
| .. | ||
| drivers | ||
| include | ||
| kernel | ||
| os-Linux | ||
| scripts | ||
| sys-ia64 | ||
| sys-ppc | ||
| .gitignore | ||
| defconfig | ||
| Kconfig.char | ||
| Kconfig.common | ||
| Kconfig.debug | ||
| Kconfig.net | ||
| Kconfig.rest | ||
| Kconfig.um | ||
| Makefile | ||
| Makefile-ia64 | ||
| Makefile-os-Linux | ||
| Makefile-ppc | ||
| Makefile-skas | ||