CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-28 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sat Jul 29 06:50:47 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c

Log Message:
linux/aarch64: Regen for syscalls.master,v 1.8


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/arch/aarch64/linux_syscall.h \
src/sys/compat/linux/arch/aarch64/linux_syscallargs.h \
src/sys/compat/linux/arch/aarch64/linux_syscalls.c \
src/sys/compat/linux/arch/aarch64/linux_sysent.c \
src/sys/compat/linux/arch/aarch64/linux_systrace_args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/linux_syscall.h
diff -u src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.6 src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.7
--- src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.6	Fri Jul 28 19:01:44 2023
+++ src/sys/compat/linux/arch/aarch64/linux_syscall.h	Sat Jul 29 06:50:47 2023
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.6 2023/07/28 19:01:44 christos Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.7 2023/07/29 06:50:47 rin Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp
+ * created from	NetBSD: syscalls.master,v 1.8 2023/07/29 06:47:26 rin Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
Index: src/sys/compat/linux/arch/aarch64/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.6 src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.7
--- src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.6	Fri Jul 28 19:01:44 2023
+++ src/sys/compat/linux/arch/aarch64/linux_syscallargs.h	Sat Jul 29 06:50:47 2023
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.6 2023/07/28 19:01:44 christos Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.7 2023/07/29 06:50:47 rin Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp
+ * created from	NetBSD: syscalls.master,v 1.8 2023/07/29 06:47:26 rin Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
Index: src/sys/compat/linux/arch/aarch64/linux_syscalls.c
diff -u src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.6 src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.7
--- src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.6	Fri Jul 28 19:01:44 2023
+++ src/sys/compat/linux/arch/aarch64/linux_syscalls.c	Sat Jul 29 06:50:47 2023
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.6 2023/07/28 19:01:44 christos Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.7 2023/07/29 06:50:47 rin Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp
+ * created from	NetBSD: syscalls.master,v 1.8 2023/07/29 06:47:26 rin Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.6 2023/07/28 19:01:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.7 2023/07/29 06:50:47 rin Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -25,15 +25,15 @@ __KERNEL_RCSID(0, "$NetBSD: linux_syscal
 #include 
 #include 
 #include 
+#include 
 #include 
+#include 
 #include 
-#include 
 #include 
 #include 
 #include 
-#include 
 #include 
-#include 
+#include 
 #include 
 #else /* _KERNEL_OPT */
 #include 
Index: src/sys/compat/linux/arch/aarch64/linux_sysent.c
diff -u src/sys/compat/linux/arch/aarch64/linux_sysent.c:1.6 src/sys/compat/linux/arch/aarch64/linux_sysent.c:1.7
--- src/sys/compat/linux/arch/aarch64/linux_sysent.c:1.6	Fri Jul 28 19:01:44 2023
+++ src/sys/compat/linux/arch/aarch64/linux_sysent.c	Sat Jul 29 06:50:47 2023
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.6 2023/07/28 19:01:44 christos Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.7 2023/07/29 06:50:47 rin Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp
+ * created from	NetBSD: syscalls.master,v 1.8 2023/07/29 06:47:26 rin Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.6 2023/07/28 19:01:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.7 2023/07/29 06:50:47 rin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -24,15 +24,15 @@ __KERNEL_RCSID(0, "$NetBSD: linux_sysent
 #include 
 #include 
 #include 
+#include 
 #include 
+#include 
 #include 
-#include 
 #include 
 #include 
 #include 
-#include 
 #include 
-#include 
+#include 
 #include 
 
 #define	s(type)	sizeof(type)
Index: src/sys/compat/linux/arch/aarch64/linux_systrace_args.c
diff -u src/sys/compat/linux/arch/aarch64/lin

CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-28 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sat Jul 29 06:50:47 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c

Log Message:
linux/aarch64: Regen for syscalls.master,v 1.8


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/arch/aarch64/linux_syscall.h \
src/sys/compat/linux/arch/aarch64/linux_syscallargs.h \
src/sys/compat/linux/arch/aarch64/linux_syscalls.c \
src/sys/compat/linux/arch/aarch64/linux_sysent.c \
src/sys/compat/linux/arch/aarch64/linux_systrace_args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-28 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sat Jul 29 06:47:26 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master

Log Message:
linux/aarch64/syscalls.master: Dedup and sort headers. NFC.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/compat/linux/arch/aarch64/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/syscalls.master
diff -u src/sys/compat/linux/arch/aarch64/syscalls.master:1.7 src/sys/compat/linux/arch/aarch64/syscalls.master:1.8
--- src/sys/compat/linux/arch/aarch64/syscalls.master:1.7	Sat Jul 29 06:45:49 2023
+++ src/sys/compat/linux/arch/aarch64/syscalls.master	Sat Jul 29 06:47:26 2023
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.7 2023/07/29 06:45:49 rin Exp $
+	$NetBSD: syscalls.master,v 1.8 2023/07/29 06:47:26 rin Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -53,16 +53,15 @@
 #include 
 
 #include 
-#include 
+#include 
 #include 
+#include 
 #include 
-#include 
 #include 
 #include 
 #include 
-#include 
 #include 
-#include 
+#include 
 
 #include 
 



CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-28 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sat Jul 29 06:47:26 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master

Log Message:
linux/aarch64/syscalls.master: Dedup and sort headers. NFC.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/compat/linux/arch/aarch64/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-28 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sat Jul 29 06:45:50 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master

Log Message:
linux/aarch64/syscalls.master: Include linux_misc.h.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/arch/aarch64/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/syscalls.master
diff -u src/sys/compat/linux/arch/aarch64/syscalls.master:1.6 src/sys/compat/linux/arch/aarch64/syscalls.master:1.7
--- src/sys/compat/linux/arch/aarch64/syscalls.master:1.6	Fri Jul 28 19:01:10 2023
+++ src/sys/compat/linux/arch/aarch64/syscalls.master	Sat Jul 29 06:45:49 2023
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp $
+	$NetBSD: syscalls.master,v 1.7 2023/07/29 06:45:49 rin Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -53,6 +53,7 @@
 #include 
 
 #include 
+#include 
 #include 
 #include 
 #include 



CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-28 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sat Jul 29 06:45:50 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master

Log Message:
linux/aarch64/syscalls.master: Include linux_misc.h.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/arch/aarch64/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul 10 21:08:37 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/aarch64/linux_syscall.h \
src/sys/compat/linux/arch/aarch64/linux_syscallargs.h \
src/sys/compat/linux/arch/aarch64/linux_syscalls.c \
src/sys/compat/linux/arch/aarch64/linux_sysent.c \
src/sys/compat/linux/arch/aarch64/linux_systrace_args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/linux_syscall.h
diff -u src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.4 src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.5
--- src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.4	Wed Dec  1 23:39:44 2021
+++ src/sys/compat/linux/arch/aarch64/linux_syscall.h	Mon Jul 10 17:08:37 2023
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.5 2023/07/10 21:08:37 christos Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -588,6 +588,9 @@
 /* syscall: "getrandom" ret: "ssize_t" args: "void *" "size_t" "unsigned int" */
 #define	LINUX_SYS_getrandom	278
 
+/* syscall: "memfd_create" ret: "int" args: "const char *" "unsigned int" */
+#define	LINUX_SYS_memfd_create	279
+
 /* syscall: "statx" ret: "int" args: "int" "const char *" "int" "unsigned int" "struct linux_statx *" */
 #define	LINUX_SYS_statx	291
 
Index: src/sys/compat/linux/arch/aarch64/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.4 src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.5
--- src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.4	Wed Dec  1 23:39:44 2021
+++ src/sys/compat/linux/arch/aarch64/linux_syscallargs.h	Mon Jul 10 17:08:37 2023
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.5 2023/07/10 21:08:37 christos Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -975,6 +975,12 @@ check_syscall_args(linux_sys_sendmmsg)
 
 struct sys_getrandom_args;
 
+struct linux_sys_memfd_create_args {
+	syscallarg(const char *) name;
+	syscallarg(unsigned int) flags;
+};
+check_syscall_args(linux_sys_memfd_create)
+
 struct linux_sys_statx_args {
 	syscallarg(int) fd;
 	syscallarg(const char *) path;
@@ -1375,6 +1381,8 @@ int	linux_sys_sendmmsg(struct lwp *, con
 
 int	sys_getrandom(struct lwp *, const struct sys_getrandom_args *, register_t *);
 
+int	linux_sys_memfd_create(struct lwp *, const struct linux_sys_memfd_create_args *, register_t *);
+
 int	linux_sys_statx(struct lwp *, const struct linux_sys_statx_args *, register_t *);
 
 int	linux_sys_nosys(struct lwp *, const void *, register_t *);
Index: src/sys/compat/linux/arch/aarch64/linux_syscalls.c
diff -u src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.4 src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.5
--- src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.4	Wed Dec  1 23:39:44 2021
+++ src/sys/compat/linux/arch/aarch64/linux_syscalls.c	Mon Jul 10 17:08:37 2023
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.5 2023/07/10 21:08:37 christos Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.4 2021/12/02 04:39:44 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.5 2023/07/10 21:08:37 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -340,7 +340,7 @@ const char *const linux_syscallnames[] =
 	/* 276 */	"#276 (unimplemented renameat2)",
 	/* 277 */	"#277 (unimplemented seccomp)",
 	/* 278 */	"getrandom",
-	/* 279 */	"#279 (unimplemented memfd_create)",
+	/* 279 */	"memfd_create",
 	/* 280 */	"#280 (unimplemented bpf)",
 	/* 281 */	"#281 (unimplemented execveat)",
 	/* 282 */	"#282 (unimplemented userfaultfd)",
@@ -878,7 +878,7 @@ const char *const altlinux_syscallnames[
 	/* 276 */	NULL, /* unimplemented renameat2 */
 	/* 277 */	NULL, /* unimplemented secco

CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul 10 21:08:37 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/aarch64/linux_syscall.h \
src/sys/compat/linux/arch/aarch64/linux_syscallargs.h \
src/sys/compat/linux/arch/aarch64/linux_syscalls.c \
src/sys/compat/linux/arch/aarch64/linux_sysent.c \
src/sys/compat/linux/arch/aarch64/linux_systrace_args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul 10 21:08:26 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master

Log Message:
add memfd_create


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/aarch64/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/syscalls.master
diff -u src/sys/compat/linux/arch/aarch64/syscalls.master:1.4 src/sys/compat/linux/arch/aarch64/syscalls.master:1.5
--- src/sys/compat/linux/arch/aarch64/syscalls.master:1.4	Wed Dec  1 23:29:47 2021
+++ src/sys/compat/linux/arch/aarch64/syscalls.master	Mon Jul 10 17:08:26 2023
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.4 2021/12/02 04:29:47 ryo Exp $
+	$NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -512,7 +512,8 @@
 277	UNIMPL		seccomp
 278	NOARGS		{ ssize_t|sys||getrandom(void *buf, size_t buflen, \
 			unsigned int flags); }
-279	UNIMPL		memfd_create
+279	STD		{ int|linux_sys||memfd_create(const char *name, \
+			unsigned int flags); }
 280	UNIMPL		bpf
 281	UNIMPL		execveat
 282	UNIMPL		userfaultfd



CVS commit: src/sys/compat/linux/arch/aarch64

2023-07-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul 10 21:08:26 UTC 2023

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master

Log Message:
add memfd_create


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/aarch64/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux/arch/aarch64

2021-11-29 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Tue Nov 30 01:52:06 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_machdep.h

Log Message:
- uname should return "aarch64" or "aarch64_be" instead of "evbarm".
- define LINUX_LARGEFILE64 to use rlimit instead of orlimit.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/aarch64/linux_machdep.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux/arch/aarch64

2021-11-29 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Tue Nov 30 01:52:06 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_machdep.h

Log Message:
- uname should return "aarch64" or "aarch64_be" instead of "evbarm".
- define LINUX_LARGEFILE64 to use rlimit instead of orlimit.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/aarch64/linux_machdep.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/linux_machdep.h
diff -u src/sys/compat/linux/arch/aarch64/linux_machdep.h:1.2 src/sys/compat/linux/arch/aarch64/linux_machdep.h:1.3
--- src/sys/compat/linux/arch/aarch64/linux_machdep.h:1.2	Thu Nov 25 03:08:04 2021
+++ src/sys/compat/linux/arch/aarch64/linux_machdep.h	Tue Nov 30 01:52:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_machdep.h,v 1.2 2021/11/25 03:08:04 ryo Exp $	*/
+/*	$NetBSD: linux_machdep.h,v 1.3 2021/11/30 01:52:06 ryo Exp $	*/
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -124,4 +124,11 @@ void linux_syscall_intern(struct proc *)
 __END_DECLS
 #endif /* !_KERNEL */
 
+#if BYTE_ORDER != BIG_ENDIAN
+#define LINUX_UNAME_ARCH	"aarch64"
+#else
+#define LINUX_UNAME_ARCH	"aarch64_be"
+#endif
+#define LINUX_LARGEFILE64
+
 #endif /* !_AARCH64_LINUX_MACHDEP_H */



CVS commit: src/sys/compat/linux/arch/aarch64

2021-11-24 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Nov 25 02:32:24 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/aarch64/linux_syscall.h \
src/sys/compat/linux/arch/aarch64/linux_syscallargs.h \
src/sys/compat/linux/arch/aarch64/linux_syscalls.c \
src/sys/compat/linux/arch/aarch64/linux_sysent.c \
src/sys/compat/linux/arch/aarch64/linux_systrace_args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/linux_syscall.h
diff -u src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.2 src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.3
--- src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.2	Wed Nov 24 18:57:24 2021
+++ src/sys/compat/linux/arch/aarch64/linux_syscall.h	Thu Nov 25 02:32:24 2021
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.2 2021/11/24 18:57:24 ryo Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.3 2021/11/25 02:32:24 ryo Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.1 2021/09/23 06:56:27 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -585,6 +585,9 @@
 /* syscall: "getrandom" ret: "ssize_t" args: "void *" "size_t" "unsigned int" */
 #define	LINUX_SYS_getrandom	278
 
+/* syscall: "statx" ret: "int" args: "int" "const char *" "int" "unsigned int" "struct linux_statx *" */
+#define	LINUX_SYS_statx	291
+
 /* syscall: "nosys" ret: "int" args: */
 #define	LINUX_SYS_nosys	440
 
Index: src/sys/compat/linux/arch/aarch64/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.2 src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.3
--- src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.2	Wed Nov 24 18:57:24 2021
+++ src/sys/compat/linux/arch/aarch64/linux_syscallargs.h	Thu Nov 25 02:32:24 2021
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.2 2021/11/24 18:57:24 ryo Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.3 2021/11/25 02:32:24 ryo Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.1 2021/09/23 06:56:27 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -967,6 +967,15 @@ check_syscall_args(linux_sys_sendmmsg)
 
 struct sys_getrandom_args;
 
+struct linux_sys_statx_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) flag;
+	syscallarg(unsigned int) mask;
+	syscallarg(struct linux_statx *) sp;
+};
+check_syscall_args(linux_sys_statx)
+
 /*
  * System call prototypes.
  */
@@ -1356,6 +1365,8 @@ int	linux_sys_sendmmsg(struct lwp *, con
 
 int	sys_getrandom(struct lwp *, const struct sys_getrandom_args *, register_t *);
 
+int	linux_sys_statx(struct lwp *, const struct linux_sys_statx_args *, register_t *);
+
 int	linux_sys_nosys(struct lwp *, const void *, register_t *);
 
 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */
Index: src/sys/compat/linux/arch/aarch64/linux_syscalls.c
diff -u src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.2 src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.3
--- src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.2	Wed Nov 24 18:57:24 2021
+++ src/sys/compat/linux/arch/aarch64/linux_syscalls.c	Thu Nov 25 02:32:24 2021
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.2 2021/11/24 18:57:24 ryo Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.3 2021/11/25 02:32:24 ryo Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.1 2021/09/23 06:56:27 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.2 2021/11/24 18:57:24 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.3 2021/11/25 02:32:24 ryo Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -352,7 +352,7 @@ const char *const linux_syscallnames[] =
 	/* 288 */	"#288 (unimplemented pkey_mprotect)",
 	/* 289 */	"#289 (unimplemented pkey_alloc)",
 	/* 290 */	"#290 (unimplemented pkey_free)",
-	/* 291 */	"#291 (unimplemented statx)",
+	/* 291 */	"statx",
 	/* 292 */	"#292 (unimplemented io_pgetevents)",
 	/* 293 */	"#293 (unimplemented rseq)",
 	/* 294 */	"#294 (unimplemented kexec_file_load)",
@@ -890,7 +890,7 @@ const char *const altlinux_syscallnames[
 	/* 288 */	NULL, /* unimplemented pkey_mprotect */
 	/* 289 */	NULL, /* unimplemented pkey_alloc */
 	/* 290 */	NULL, /* unimplemented pkey_free */
-	/* 291 */	NULL, /* unimplemented stat

CVS commit: src/sys/compat/linux/arch/aarch64

2021-11-24 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Nov 25 02:32:24 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/aarch64/linux_syscall.h \
src/sys/compat/linux/arch/aarch64/linux_syscallargs.h \
src/sys/compat/linux/arch/aarch64/linux_syscalls.c \
src/sys/compat/linux/arch/aarch64/linux_sysent.c \
src/sys/compat/linux/arch/aarch64/linux_systrace_args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux/arch/aarch64

2021-11-24 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Nov 25 02:29:33 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master

Log Message:
add statx(2) syscall entry


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/aarch64/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/syscalls.master
diff -u src/sys/compat/linux/arch/aarch64/syscalls.master:1.2 src/sys/compat/linux/arch/aarch64/syscalls.master:1.3
--- src/sys/compat/linux/arch/aarch64/syscalls.master:1.2	Wed Nov 24 18:52:13 2021
+++ src/sys/compat/linux/arch/aarch64/syscalls.master	Thu Nov 25 02:29:33 2021
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.2 2021/11/24 18:52:13 ryo Exp $
+	$NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -523,7 +523,9 @@
 288	UNIMPL		pkey_mprotect
 289	UNIMPL		pkey_alloc
 290	UNIMPL		pkey_free
-291	UNIMPL		statx
+291	STD		{ int|linux_sys||statx(int fd, const char *path, \
+			int flag, unsigned int mask, \
+			struct linux_statx *sp); }
 292	UNIMPL		io_pgetevents
 293	UNIMPL		rseq
 294	UNIMPL		kexec_file_load



CVS commit: src/sys/compat/linux/arch/aarch64

2021-11-24 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Nov 25 02:29:33 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master

Log Message:
add statx(2) syscall entry


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/aarch64/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.