]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix kernel unaligned access on sparc64
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 11 Jul 2018 20:10:40 +0000 (13:10 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Jul 2018 20:10:40 +0000 (13:10 -0700)
commit33a19e0fd9b22364d295351ea1bda57b80e39e85
tree1a0bf9708376d1a00e64dd5f8e23eb3bbcb739b9
parent2dca37d8dc13e6faf92c5a095d49dffd480c5b2d
Fix kernel unaligned access on sparc64

Update the SA_COPY_DATA macro to check if architecture supports
efficient unaligned memory accesses at compile time.  Otherwise
fallback to using the sa_copy_data() function.

The kernel provided CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is
used to determine availability in kernel space.  In user space
the x86_64, x86, powerpc, and sometimes arm architectures will
define the HAVE_EFFICIENT_UNALIGNED_ACCESS macro.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7642
Closes #7684
include/spl/sys/isa_defs.h
lib/libspl/include/sys/isa_defs.h
module/icp/algs/modes/ccm.c
module/zfs/sa.c