mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Unify assembly files with macOS
The remaining changes needed to make the assembly files work with macOS. Reviewed-by: Attila Fülöp <attila@fueloep.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Jorgen Lundman <lundman@lundman.net> Closes #14451
This commit is contained in:
parent
6017fd9377
commit
dffd40b3b6
@ -1791,7 +1791,6 @@ ENTRY_ALIGN(zfs_blake3_hash_many_avx2, 64)
|
||||
SET_SIZE(zfs_blake3_hash_many_avx2)
|
||||
|
||||
SECTION_STATIC
|
||||
.section .rodata
|
||||
|
||||
.p2align 6
|
||||
ADD0:
|
||||
|
@ -53,6 +53,11 @@
|
||||
/* Windows userland links with OpenSSL */
|
||||
#if !defined (_WIN32) || defined (_KERNEL)
|
||||
|
||||
/* Apple needs _ */
|
||||
#if defined (__APPLE__)
|
||||
#define gcm_avx_can_use_movbe _gcm_avx_can_use_movbe
|
||||
#endif
|
||||
|
||||
.extern gcm_avx_can_use_movbe
|
||||
|
||||
.text
|
||||
|
@ -101,7 +101,7 @@ gcm_mul_pclmulqdq(uint64_t *x_in, uint64_t *y, uint64_t *res) {
|
||||
|
||||
// static uint8_t byte_swap16_mask[] = {
|
||||
// 15, 14, 13, 12, 11, 10, 9, 8, 7, 6 ,5, 4, 3, 2, 1, 0 };
|
||||
.section .rodata
|
||||
SECTION_STATIC
|
||||
.balign XMM_ALIGN
|
||||
.Lbyte_swap16_mask:
|
||||
.byte 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
|
||||
|
@ -2063,7 +2063,7 @@ ENTRY_NP(SHA256TransformBlocks)
|
||||
.cfi_endproc
|
||||
SET_SIZE(SHA256TransformBlocks)
|
||||
|
||||
.section .rodata
|
||||
SECTION_STATIC
|
||||
.balign 64
|
||||
SET_OBJ(K256)
|
||||
K256:
|
||||
|
@ -2064,7 +2064,7 @@ ENTRY_NP(SHA512TransformBlocks)
|
||||
.cfi_endproc
|
||||
SET_SIZE(SHA512TransformBlocks)
|
||||
|
||||
.section .rodata
|
||||
SECTION_STATIC
|
||||
.balign 64
|
||||
SET_OBJ(K512)
|
||||
K512:
|
||||
@ -2113,4 +2113,3 @@ K512:
|
||||
#if defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user