]> granicus.if.org Git - zfs/commit
[icp] fpu and asm cleanup for linux
authorGvozden Neskovic <neskovic@gmail.com>
Tue, 7 Mar 2017 20:59:31 +0000 (21:59 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Mar 2017 20:59:31 +0000 (12:59 -0800)
commit650383f2838d5864f127e9d8595b97ad024c9648
tree95c42019afea06be3e8c0158edc0d0b4860419ca
parent5fc73c46f9f94d2697b77a830dd9fb8a85368d23
[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 <tcaputi@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gvozden Neskovic <neskovic@gmail.com>
Closes #5872
Closes #5041
12 files changed:
config/kernel-objtool.m4 [new file with mode: 0644]
config/kernel.m4
module/icp/Makefile.in
module/icp/algs/aes/aes_impl.c
module/icp/algs/modes/gcm.c
module/icp/asm-x86_64/aes/aes_amd64.S
module/icp/asm-x86_64/aes/aes_intel.S
module/icp/asm-x86_64/modes/gcm_intel.S
module/icp/asm-x86_64/sha1/sha1-x86_64.S
module/icp/asm-x86_64/sha2/sha256_impl.S
module/icp/asm-x86_64/sha2/sha512_impl.S
module/icp/include/sys/asm_linkage.h