Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102098712
D33061.id98751.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D33061.id98751.diff
View Options
Index: security/openssl/files/patch-crypto_armcap.c
===================================================================
--- /dev/null
+++ security/openssl/files/patch-crypto_armcap.c
@@ -0,0 +1,30 @@
+--- crypto/armcap.c.orig 2021-11-19 15:20:18 UTC
++++ crypto/armcap.c
+@@ -107,8 +107,12 @@ static unsigned long getauxval(unsigned long key)
+ * AArch64 used AT_HWCAP.
+ */
+ # if defined(__arm__) || defined (__arm)
+-# define HWCAP 16
++# if defined(__FreeBSD__)
++# define HWCAP AT_HWCAP
++# else
++# define HWCAP 16
+ /* AT_HWCAP */
++# endif
+ # define HWCAP_NEON (1 << 12)
+
+ # define HWCAP_CE 26
+@@ -118,8 +122,12 @@ static unsigned long getauxval(unsigned long key)
+ # define HWCAP_CE_SHA1 (1 << 2)
+ # define HWCAP_CE_SHA256 (1 << 3)
+ # elif defined(__aarch64__)
+-# define HWCAP 16
++# if defined(__FreeBSD__)
++# define HWCAP AT_HWCAP
++# else
++# define HWCAP 16
+ /* AT_HWCAP */
++# endif
+ # define HWCAP_NEON (1 << 1)
+
+ # define HWCAP_CE HWCAP
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 2:34 PM (19 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14536675
Default Alt Text
D33061.id98751.diff (1 KB)
Attached To
Mode
D33061: security/openssl: Fix detection of ARMv7/ARM64 CPU features
Attached
Detach File
Event Timeline
Log In to Comment