summaryrefslogtreecommitdiffstats
path: root/module/icp/include
diff options
context:
space:
mode:
authorGvozden Neskovic <[email protected]>2017-03-07 21:59:31 +0100
committerBrian Behlendorf <[email protected]>2017-03-07 12:59:31 -0800
commit650383f2838d5864f127e9d8595b97ad024c9648 (patch)
tree95c42019afea06be3e8c0158edc0d0b4860419ca /module/icp/include
parent5fc73c46f9f94d2697b77a830dd9fb8a85368d23 (diff)
[icp] fpu and asm cleanup for linux
Properly annotate functions and data section so that objtool does not complain when CONFIG_STACK_VALIDATION and CONFIG_FRAME_POINTER are enabled. Pass KERNELCPPFLAGS to assembler. Use kfpu_begin()/kfpu_end() to protect SIMD regions in Linux kernel. Reviewed-by: Tom Caputi <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Gvozden Neskovic <[email protected]> Closes #5872 Closes #5041
Diffstat (limited to 'module/icp/include')
-rw-r--r--module/icp/include/sys/asm_linkage.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/module/icp/include/sys/asm_linkage.h b/module/icp/include/sys/asm_linkage.h
index 380597857..49a494b46 100644
--- a/module/icp/include/sys/asm_linkage.h
+++ b/module/icp/include/sys/asm_linkage.h
@@ -33,4 +33,14 @@
#endif
+#if defined(_KERNEL) && defined(HAVE_KERNEL_OBJTOOL)
+
+#include <asm/frame.h>
+
+#else /* userspace */
+#define FRAME_BEGIN
+#define FRAME_END
+#endif
+
+
#endif /* _SYS_ASM_LINKAGE_H */