FreeBSD Bugzilla – Attachment 203292 Details for
Bug 236855
www/qt5-webengine: fails to build on aarch64 and armv7 after 5.12 update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
arm_features.c.diff (text/plain), 1.18 KB, created by
Mikael Urankar
on 2019-04-01 14:22:03 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Mikael Urankar
Created:
2019-04-01 14:22:03 UTC
Size:
1.18 KB
patch
obsolete
>--- ./src/3rdparty/chromium/third_party/zlib/arm_features.c.orig 2019-01-16 11:59:47.000000000 +0100 >+++ ./src/3rdparty/chromium/third_party/zlib/arm_features.c 2019-04-01 15:35:41.965641000 +0200 >@@ -10,7 +10,25 @@ > #include <pthread.h> > #include <stdint.h> > >-#if defined(ARMV8_OS_ANDROID) >+int ZLIB_INTERNAL arm_cpu_enable_crc32 = 0; >+int ZLIB_INTERNAL arm_cpu_enable_pmull = 0; >+ >+#îf defined (__FreeBSD__) >+#include <machine/armreg.h> >+#include <sys/types.h> >+static void init_arm_features(void) >+{ >+#if defined (__aarch64__) >+ uint64_t id_aa64isar0; >+ >+ id_aa64isar0 = READ_SPECIALREG(ID_AA64ISAR0_EL1); >+ if (ID_AA64ISAR0_AES(id_aa64isar0) == ID_AA64ISAR0_AES_PMULL) >+ arm_cpu_enable_pmull = 1; >+ if (ID_AA64ISAR0_CRC32(id_aa64isar0) == ID_AA64ISAR0_CRC32_BASE)) >+ arm_cpu_enable_crc32 = 1; >+#endif >+} >+#elif defined(ARMV8_OS_ANDROID) > #include <cpu-features.h> > #elif defined(ARMV8_OS_LINUX) > #include <asm/hwcap.h> >@@ -18,9 +36,6 @@ > #else > #error ### No ARM CPU features detection in your platform/OS > #endif >- >-int ZLIB_INTERNAL arm_cpu_enable_crc32 = 0; >-int ZLIB_INTERNAL arm_cpu_enable_pmull = 0; > > static pthread_once_t cpu_check_inited_once = PTHREAD_ONCE_INIT; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236855
:
203288
|
203289
|
203292
|
203301
|
203348
|
203356