diff options
author | patrick <> | 2019-07-02 19:31:28 +0000 |
---|---|---|
committer | patrick <> | 2019-07-02 19:31:28 +0000 |
commit | 88ab3711341dea97a3118b0654ceab1679d5e0a1 (patch) | |
tree | 402e4d2faadaa1bec334a1353f0221180cea6aaf /src/lib/libcrypto/arm_arch.h | |
parent | 2bfac65cc0bd40d261de39c1b0f01b8955de1d1f (diff) | |
download | openbsd-88ab3711341dea97a3118b0654ceab1679d5e0a1.tar.gz openbsd-88ab3711341dea97a3118b0654ceab1679d5e0a1.tar.bz2 openbsd-88ab3711341dea97a3118b0654ceab1679d5e0a1.zip |
Add cpuid support for arm64 so that we can recognize which
hardware crypto features are available.
"no objections" kettenis@
Diffstat (limited to 'src/lib/libcrypto/arm_arch.h')
-rw-r--r-- | src/lib/libcrypto/arm_arch.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/arm_arch.h b/src/lib/libcrypto/arm_arch.h index a64c6da46e..8c5115ea44 100644 --- a/src/lib/libcrypto/arm_arch.h +++ b/src/lib/libcrypto/arm_arch.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: arm_arch.h,v 1.9 2019/03/13 10:18:30 patrick Exp $ */ | 1 | /* $OpenBSD: arm_arch.h,v 1.10 2019/07/02 19:31:28 patrick Exp $ */ |
2 | #ifndef __ARM_ARCH_H__ | 2 | #ifndef __ARM_ARCH_H__ |
3 | #define __ARM_ARCH_H__ | 3 | #define __ARM_ARCH_H__ |
4 | 4 | ||
@@ -17,7 +17,11 @@ | |||
17 | * gcc/config/arm/arm.c. On a side note it defines | 17 | * gcc/config/arm/arm.c. On a side note it defines |
18 | * __ARMEL__/__ARMEB__ for little-/big-endian. | 18 | * __ARMEL__/__ARMEB__ for little-/big-endian. |
19 | */ | 19 | */ |
20 | # if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \ | 20 | # if defined(__ARM_ARCH) |
21 | # define __ARM_ARCH__ __ARM_ARCH | ||
22 | # elif defined(__ARM_ARCH_8A__) | ||
23 | # define __ARM_ARCH__ 8 | ||
24 | # elif defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \ | ||
21 | defined(__ARM_ARCH_7R__)|| defined(__ARM_ARCH_7M__) || \ | 25 | defined(__ARM_ARCH_7R__)|| defined(__ARM_ARCH_7M__) || \ |
22 | defined(__ARM_ARCH_7EM__) | 26 | defined(__ARM_ARCH_7EM__) |
23 | # define __ARM_ARCH__ 7 | 27 | # define __ARM_ARCH__ 7 |