diff options
author | Shengqi Chen <harry-chen@outlook.com> | 2023-11-22 13:58:47 +0000 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2023-11-28 21:25:44 +0000 |
commit | 4340f69be1f8562ddb6654618134c921496e5e47 (patch) | |
tree | a77463888db323451904d71a66312ace3d49bb5d | |
parent | b3a985fa42def27e70dbf4fbfb13cdb779add517 (diff) | |
download | src-4340f69be1f8562ddb6654618134c921496e5e47.tar.gz src-4340f69be1f8562ddb6654618134c921496e5e47.zip |
-rw-r--r-- | module/icp/asm-arm/sha2/sha256-armv7.S | 7 | ||||
-rw-r--r-- | module/icp/asm-arm/sha2/sha512-armv7.S | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/module/icp/asm-arm/sha2/sha256-armv7.S b/module/icp/asm-arm/sha2/sha256-armv7.S index 0001e4d69055..0d36315873d8 100644 --- a/module/icp/asm-arm/sha2/sha256-armv7.S +++ b/module/icp/asm-arm/sha2/sha256-armv7.S @@ -21,8 +21,11 @@ #if defined(__arm__) -#define __ARM_ARCH__ 7 -#define __ARM_MAX_ARCH__ 7 +#ifndef __ARM_ARCH +# define __ARM_ARCH__ 7 +#else +# define __ARM_ARCH__ __ARM_ARCH +#endif #if defined(__thumb2__) .syntax unified diff --git a/module/icp/asm-arm/sha2/sha512-armv7.S b/module/icp/asm-arm/sha2/sha512-armv7.S index a4c804033b92..499cb6df9567 100644 --- a/module/icp/asm-arm/sha2/sha512-armv7.S +++ b/module/icp/asm-arm/sha2/sha512-armv7.S @@ -21,8 +21,11 @@ #if defined(__arm__) -#define __ARM_ARCH__ 7 -#define __ARM_MAX_ARCH__ 7 +#ifndef __ARM_ARCH +# define __ARM_ARCH__ 7 +#else +# define __ARM_ARCH__ __ARM_ARCH +#endif #ifndef __KERNEL__ # define VFP_ABI_PUSH vstmdb sp!,{d8-d15} |