diff options
author | Mikael Urankar <mikael@FreeBSD.org> | 2020-03-31 15:13:15 +0000 |
---|---|---|
committer | Mikael Urankar <mikael@FreeBSD.org> | 2020-03-31 15:13:15 +0000 |
commit | f5c45d042b96006ef34e6971e24a76a472bcd5b8 (patch) | |
tree | f7bbb1edcaba4442a008e8386430f59a17cbba60 /mail/thunderbird | |
parent | 70e31bb7b28b1b5e090a6e1036631b4e560cd010 (diff) | |
download | ports-f5c45d042b96006ef34e6971e24a76a472bcd5b8.tar.gz ports-f5c45d042b96006ef34e6971e24a76a472bcd5b8.zip |
Notes
Diffstat (limited to 'mail/thunderbird')
-rw-r--r-- | mail/thunderbird/files/patch-gfx_skia_skia_src_core_SkCpu.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mail/thunderbird/files/patch-gfx_skia_skia_src_core_SkCpu.cpp b/mail/thunderbird/files/patch-gfx_skia_skia_src_core_SkCpu.cpp index 29604e85f690..2f603bb0ecab 100644 --- a/mail/thunderbird/files/patch-gfx_skia_skia_src_core_SkCpu.cpp +++ b/mail/thunderbird/files/patch-gfx_skia_skia_src_core_SkCpu.cpp @@ -4,21 +4,24 @@ gfx/skia/skia/src/core/SkCpu.cpp:81:27: error: use of undeclared identifier 'get uint32_t hwcaps = getauxval(AT_HWCAP); ^ ---- gfx/skia/skia/src/core/SkCpu.cpp.orig 2019-02-27 22:18:23 UTC +--- gfx/skia/skia/src/core/SkCpu.cpp.orig 2020-02-10 09:43:20 UTC +++ gfx/skia/skia/src/core/SkCpu.cpp -@@ -70,6 +70,20 @@ +@@ -70,6 +70,23 @@ return features; } +#elif defined(SK_CPU_ARM64) && defined(__FreeBSD__) + #include <machine/armreg.h> ++ #ifndef ID_AA64ISAR0_CRC32_VAL ++ #define ID_AA64ISAR0_CRC32_VAL ID_AA64ISAR0_CRC32 ++ #endif + + static uint32_t read_cpu_features() { + uint32_t features = 0; + uint64_t id_aa64isar0; + -+ id_aa64isar0 = READ_SPECIALREG(ID_AA64ISAR0_EL1); -+ if (ID_AA64ISAR0_CRC32(id_aa64isar0) == ID_AA64ISAR0_CRC32_BASE) { ++ id_aa64isar0 = READ_SPECIALREG(id_aa64isar0_el1); ++ if (ID_AA64ISAR0_CRC32_VAL(id_aa64isar0) == ID_AA64ISAR0_CRC32_BASE) { + features |= SkCpu::CRC32; + } + return features; |