File tree 2 files changed +7
-2
lines changed 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,10 @@ addition to the operations above.
90
90
91
91
On Linux ARM platforms, BoringSSL depends on OS APIs to query CPU capabilities.
92
92
32-bit and 64-bit ARM both depend on the ` getauxval ` function. 32-bit ARM, to
93
- work around bugs in older Android devices, may additionally read ` /proc/cpuinfo `
94
- and ` /proc/self/auxv ` .
93
+ work around bugs in older Android devices, may additionally read
94
+ ` /proc/cpuinfo ` .
95
+
96
+ On 64-bit Apple ARM platforms, BoringSSL needs to query ` hw.optional.* ` sysctls.
95
97
96
98
If querying CPU capabilities fails, BoringSSL will still function, but may not
97
99
perform as well.
Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ void OPENSSL_cpuid_setup(void) {
65
65
// available in macOS 12. For compatibility with macOS 11, we also support
66
66
// the old names. The old names don't have values for features like FEAT_AES,
67
67
// so instead we detect them statically above.
68
+ //
69
+ // If querying new sysctls, update the Chromium sandbox definition. See
70
+ // https://crrev.com/c/4415225.
68
71
if (has_hw_feature ("hw.optional.arm.FEAT_SHA512" ) ||
69
72
has_hw_feature ("hw.optional.armv8_2_sha512" )) {
70
73
OPENSSL_armcap_P |= ARMV8_SHA512 ;
You can’t perform that action at this time.
0 commit comments