]> granicus.if.org Git - zfs/commit
Fix kernel unaligned access on sparc64
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 11 Jul 2018 20:10:40 +0000 (13:10 -0700)
committerTony Hutter <hutter2@llnl.gov>
Fri, 6 Jul 2018 09:46:51 +0000 (02:46 -0700)
commit716ce2b89e2e86696d9500f04fc8b7b8ad5550a4
tree918ecf8b2c2765c81859cce5067c35b8403e16c9
parent9daae583d8ba5068c91ddb85f5c3e04e8cee8258
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
lib/libspl/include/sys/isa_defs.h
module/icp/algs/modes/ccm.c
module/zfs/sa.c