View | Details | Raw Unified | Return to bug 243653 | Differences between
and this patch

Collapse All | Expand All

(-)www/firefox/files/patch-gfx_skia_skia_src_core_SkCpu.cpp (-2 / +5 lines)
Lines 4-17 Link Here
4
        uint32_t hwcaps = getauxval(AT_HWCAP);
4
        uint32_t hwcaps = getauxval(AT_HWCAP);
5
                          ^
5
                          ^
6
6
7
--- gfx/skia/skia/src/core/SkCpu.cpp.orig	2019-02-27 22:18:23 UTC
7
--- gfx/skia/skia/src/core/SkCpu.cpp.orig	2020-02-07 22:13:22 UTC
8
+++ gfx/skia/skia/src/core/SkCpu.cpp
8
+++ gfx/skia/skia/src/core/SkCpu.cpp
9
@@ -70,6 +70,20 @@
9
@@ -72,6 +72,23 @@
10
         return features;
10
         return features;
11
     }
11
     }
12
 
12
 
13
+#elif defined(SK_CPU_ARM64) && defined(__FreeBSD__)
13
+#elif defined(SK_CPU_ARM64) && defined(__FreeBSD__)
14
+    #include <machine/armreg.h>
14
+    #include <machine/armreg.h>
15
+#ifndef ID_AA64ISAR0_CRC32_VAL
16
+#define ID_AA64ISAR0_CRC32_VAL ID_AA64ISAR0_CRC32
17
+#endif
15
+
18
+
16
+    static uint32_t read_cpu_features() {
19
+    static uint32_t read_cpu_features() {
17
+        uint32_t features = 0;
20
+        uint32_t features = 0;
(-)www/firefox-esr/files/patch-gfx_skia_skia_src_core_SkCpu.cpp (-2 / +5 lines)
Lines 4-17 Link Here
4
        uint32_t hwcaps = getauxval(AT_HWCAP);
4
        uint32_t hwcaps = getauxval(AT_HWCAP);
5
                          ^
5
                          ^
6
6
7
--- gfx/skia/skia/src/core/SkCpu.cpp.orig	2019-02-27 22:18:23 UTC
7
--- gfx/skia/skia/src/core/SkCpu.cpp.orig	2020-02-07 01:27:03 UTC
8
+++ gfx/skia/skia/src/core/SkCpu.cpp
8
+++ gfx/skia/skia/src/core/SkCpu.cpp
9
@@ -70,6 +70,20 @@
9
@@ -70,6 +70,23 @@
10
         return features;
10
         return features;
11
     }
11
     }
12
 
12
 
13
+#elif defined(SK_CPU_ARM64) && defined(__FreeBSD__)
13
+#elif defined(SK_CPU_ARM64) && defined(__FreeBSD__)
14
+    #include <machine/armreg.h>
14
+    #include <machine/armreg.h>
15
+#ifndef ID_AA64ISAR0_CRC32_VAL
16
+#define ID_AA64ISAR0_CRC32_VAL ID_AA64ISAR0_CRC32
17
+#endif
15
+
18
+
16
+    static uint32_t read_cpu_features() {
19
+    static uint32_t read_cpu_features() {
17
+        uint32_t features = 0;
20
+        uint32_t features = 0;

Return to bug 243653