pixman: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 30 17:32:22 UTC 2025


 meson.build           |    5 +++--
 pixman/pixman-riscv.c |    4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 8ad51d4555b6a14901f09cb537a98db3c60ffcbb
Author: f wasil <f.wasil at samsung.com>
Date:   Wed Jul 30 17:32:20 2025 +0000

    RISCV-V: Use syscall() directly

diff --git a/meson.build b/meson.build
index c80df28..a4f695f 100644
--- a/meson.build
+++ b/meson.build
@@ -374,8 +374,8 @@ if not use_rvv.disabled()
         #include <riscv_vector.h>
         #include <asm/hwprobe.h>
         #include <linux/version.h>
-        #include <sys/auxv.h>
         #include <sys/syscall.h>
+        #include <asm/unistd.h>
         #include <unistd.h>
 
         #if defined(__riscv_v) && __riscv_v < 1000000
@@ -384,9 +384,10 @@ if not use_rvv.disabled()
         #if LINUX_VERSION_CODE < KERNEL_VERSION(6, 5, 0)
         #error "Minimum supported kernel is 6.5.0"
         #endif
+
         int main() {
             struct riscv_hwprobe pair = {RISCV_HWPROBE_KEY_IMA_EXT_0, 0};
-            long result = sys_riscv_hwprobe (&pair, 1, 0, 0, 0);
+            long result = syscall (__NR_riscv_hwprobe, &pair, 1, 0, 0, 0);
             vfloat32m1_t tmp1; /* added in gcc-13 */
             vfloat32m1x4_t tmp2; /* added in gcc-14 */
             return 0;
diff --git a/pixman/pixman-riscv.c b/pixman/pixman-riscv.c
index d8e9e32..350824d 100644
--- a/pixman/pixman-riscv.c
+++ b/pixman/pixman-riscv.c
@@ -31,7 +31,7 @@
 
 #if defined(__linux__)
 #include <asm/hwprobe.h>
-#include <sys/auxv.h>
+#include <asm/unistd.h>
 #include <sys/syscall.h>
 #include <unistd.h>
 
@@ -39,7 +39,7 @@ static int
 is_rvv_1_0_available ()
 {
     struct riscv_hwprobe pair = {RISCV_HWPROBE_KEY_IMA_EXT_0, 0};
-    if (sys_riscv_hwprobe (&pair, 1, 0, 0, 0) < 0)
+    if (syscall (__NR_riscv_hwprobe, &pair, 1, 0, 0, 0) < 0)
     {
 	return 0;
     }


More information about the xorg-commit mailing list