]> git.proxmox.com Git - mirror_zfs.git/commit
x86 asm: Replace .align with .balign
authorAttila Fülöp <attila@fueloep.org>
Mon, 23 Jan 2023 19:25:21 +0000 (20:25 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 24 Jan 2023 17:04:39 +0000 (09:04 -0800)
commit037e4f25367aaefb68f3c3a67e4c737de420727f
tree7b13fddb38b4d413c950fa893198f6c43fb6b803
parent58ca7b10119b67e25161e43a2ad74deda483468b
x86 asm: Replace .align with .balign

The .align directive used to align storage locations is
ambiguous. On some platforms and assemblers it takes a byte count,
on others the argument is interpreted as a shift value. The current
usage expects the first interpretation.

Replace it with the unambiguous .balign directive which always
expects a byte count, regardless of platform and assembler.

Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Attila Fülöp <attila@fueloep.org>
Closes #14422
16 files changed:
include/os/freebsd/spl/sys/ia32/asm_linkage.h
include/os/linux/spl/sys/ia32/asm_linkage.h
lib/libspl/include/os/freebsd/sys/ia32/asm_linkage.h
lib/libspl/include/os/linux/sys/ia32/asm_linkage.h
module/icp/asm-x86_64/aes/aes_aesni.S
module/icp/asm-x86_64/aes/aes_amd64.S
module/icp/asm-x86_64/modes/aesni-gcm-x86_64.S
module/icp/asm-x86_64/modes/gcm_pclmulqdq.S
module/icp/asm-x86_64/modes/ghash-x86_64.S
module/icp/asm-x86_64/sha2/sha256_impl.S
module/icp/asm-x86_64/sha2/sha512_impl.S
module/lua/setjmp/setjmp_aarch64.S
module/lua/setjmp/setjmp_arm.S
module/lua/setjmp/setjmp_i386.S
module/lua/setjmp/setjmp_ppc.S
module/lua/setjmp/setjmp_sparc64.S