Skip to content

Commit

Permalink
module/icp/asm-arm/sha2: fix compiling on armv5/6
Browse files Browse the repository at this point in the history
The `adr` insn in neon kernel generates an compiling
error on armv5/6 target. Fix that by using `ldr`.

Signed-off-by: Shengqi Chen <[email protected]>
  • Loading branch information
Harry-Chen committed Nov 22, 2023
1 parent bd7b0a7 commit f9afa21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module/icp/asm-arm/sha2/sha256-armv7.S
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,11 @@ zfs_sha256_block_neon:
stmdb sp!,{r4-r12,lr}

sub r11,sp,#16*4+16
#if __ARM_ARCH__ >=7
adr r14,K256
#else
ldr r14,=K256
#endif
bic r11,r11,#15 @ align for 128-bit stores
mov r12,sp
mov sp,r11 @ alloca
Expand Down

0 comments on commit f9afa21

Please sign in to comment.