* [musl] LoongArch:bits/syscall.h:update syscall number.
@ 2024-02-28 8:42 Hongliang Wang
2024-02-29 22:35 ` Rich Felker
0 siblings, 1 reply; 2+ messages in thread
From: Hongliang Wang @ 2024-02-28 8:42 UTC (permalink / raw)
To: musl
[-- Attachment #1: Type: text/plain, Size: 1885 bytes --]
Hi,
Delete __NR_getrlimit and __NR_setrlimit, which are not supported
in LoongArch in linux kernel.
Add 441-446, 448-456 syscall number.
---
arch/loongarch64/bits/syscall.h.in | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/arch/loongarch64/bits/syscall.h.in
b/arch/loongarch64/bits/syscall.h.in
index 0980e533..2afb4ea1 100644
--- a/arch/loongarch64/bits/syscall.h.in
+++ b/arch/loongarch64/bits/syscall.h.in
@@ -158,8 +158,6 @@
#define __NR_uname 160
#define __NR_sethostname 161
#define __NR_setdomainname 162
-#define __NR_getrlimit 163
-#define __NR_setrlimit 164
#define __NR_getrusage 165
#define __NR_umask 166
#define __NR_prctl 167
@@ -292,6 +290,21 @@
#define __NR_pidfd_getfd 438
#define __NR_faccessat2 439
#define __NR_process_madvise 440
+#define __NR_epoll_pwait2 441
+#define __NR_mount_setattr 442
+#define __NR_quotactl_fd 443
+#define __NR_landlock_create_ruleset 444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self 446
+#define __NR_process_mrelease 448
+#define __NR_futex_waitv 449
+#define __NR_set_mempolicy_home_node 450
+#define __NR_cachestat 451
+#define __NR_fchmodat2 452
+#define __NR_map_shadow_stack 453
+#define __NR_futex_wake 454
+#define __NR_futex_wait 455
+#define __NR_futex_requeue 456
#define __NR_fcntl __NR3264_fcntl
#define __NR_statfs __NR3264_statfs
#define __NR_fstatfs __NR3264_fstatfs
--
2.37.1
Regards,
Hongliang Wang
[-- Attachment #2: 0001-LoongArch-bits-syscall.h-update-syscall-number.patch --]
[-- Type: text/x-patch, Size: 2121 bytes --]
From 71bb136d040b63349a92c55634aff8bd263c0a80 Mon Sep 17 00:00:00 2001
From: wanghongliang <wanghongliang@loongson.cn>
Date: Wed, 28 Feb 2024 06:38:08 +0800
Subject: [PATCH] LoongArch:bits/syscall.h:update syscall number.
Delete __NR_getrlimit and __NR_setrlimit, which are not supported
in LoongArch in linux kernel.
Add 441-446, 448-456 syscall number.
Signed-off-by: wanghongliang <wanghongliang@loongson.cn>
---
arch/loongarch64/bits/syscall.h.in | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/arch/loongarch64/bits/syscall.h.in b/arch/loongarch64/bits/syscall.h.in
index 0980e533..2afb4ea1 100644
--- a/arch/loongarch64/bits/syscall.h.in
+++ b/arch/loongarch64/bits/syscall.h.in
@@ -158,8 +158,6 @@
#define __NR_uname 160
#define __NR_sethostname 161
#define __NR_setdomainname 162
-#define __NR_getrlimit 163
-#define __NR_setrlimit 164
#define __NR_getrusage 165
#define __NR_umask 166
#define __NR_prctl 167
@@ -292,6 +290,21 @@
#define __NR_pidfd_getfd 438
#define __NR_faccessat2 439
#define __NR_process_madvise 440
+#define __NR_epoll_pwait2 441
+#define __NR_mount_setattr 442
+#define __NR_quotactl_fd 443
+#define __NR_landlock_create_ruleset 444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self 446
+#define __NR_process_mrelease 448
+#define __NR_futex_waitv 449
+#define __NR_set_mempolicy_home_node 450
+#define __NR_cachestat 451
+#define __NR_fchmodat2 452
+#define __NR_map_shadow_stack 453
+#define __NR_futex_wake 454
+#define __NR_futex_wait 455
+#define __NR_futex_requeue 456
#define __NR_fcntl __NR3264_fcntl
#define __NR_statfs __NR3264_statfs
#define __NR_fstatfs __NR3264_fstatfs
--
2.37.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [musl] LoongArch:bits/syscall.h:update syscall number.
2024-02-28 8:42 [musl] LoongArch:bits/syscall.h:update syscall number Hongliang Wang
@ 2024-02-29 22:35 ` Rich Felker
0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2024-02-29 22:35 UTC (permalink / raw)
To: Hongliang Wang; +Cc: musl
On Wed, Feb 28, 2024 at 04:42:15PM +0800, Hongliang Wang wrote:
> Hi,
>
> Delete __NR_getrlimit and __NR_setrlimit, which are not supported
> in LoongArch in linux kernel.
> Add 441-446, 448-456 syscall number.
Thanks. I'm merging this with the removal of erroneous syscall numbers
split out from the addition of new ones.
Rich
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-29 22:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 8:42 [musl] LoongArch:bits/syscall.h:update syscall number Hongliang Wang
2024-02-29 22:35 ` Rich Felker
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).