Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/arch/aarch64 regen
details: https://anonhg.NetBSD.org/src/rev/10c3b365d573
branches: trunk
changeset: 377405:10c3b365d573
user: christos <christos%NetBSD.org@localhost>
date: Mon Jul 10 21:08:37 2023 +0000
description:
regen
diffstat:
sys/compat/linux/arch/aarch64/linux_syscall.h | 7 +++-
sys/compat/linux/arch/aarch64/linux_syscallargs.h | 12 +++++++-
sys/compat/linux/arch/aarch64/linux_syscalls.c | 10 +++---
sys/compat/linux/arch/aarch64/linux_sysent.c | 12 +++++---
sys/compat/linux/arch/aarch64/linux_systrace_args.c | 28 ++++++++++++++++++++-
5 files changed, 54 insertions(+), 15 deletions(-)
diffs (193 lines):
diff -r edae005eff25 -r 10c3b365d573 sys/compat/linux/arch/aarch64/linux_syscall.h
--- a/sys/compat/linux/arch/aarch64/linux_syscall.h Mon Jul 10 21:08:26 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscall.h Mon Jul 10 21:08:37 2023 +0000
@@ -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
diff -r edae005eff25 -r 10c3b365d573 sys/compat/linux/arch/aarch64/linux_syscallargs.h
--- a/sys/compat/linux/arch/aarch64/linux_syscallargs.h Mon Jul 10 21:08:26 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscallargs.h Mon Jul 10 21:08:37 2023 +0000
@@ -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 *);
diff -r edae005eff25 -r 10c3b365d573 sys/compat/linux/arch/aarch64/linux_syscalls.c
--- a/sys/compat/linux/arch/aarch64/linux_syscalls.c Mon Jul 10 21:08:26 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscalls.c Mon Jul 10 21:08:37 2023 +0000
@@ -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 <sys/cdefs.h>
-__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 seccomp */
/* 278 */ NULL, /* getrandom */
- /* 279 */ NULL, /* unimplemented memfd_create */
+ /* 279 */ NULL, /* memfd_create */
/* 280 */ NULL, /* unimplemented bpf */
/* 281 */ NULL, /* unimplemented execveat */
/* 282 */ NULL, /* unimplemented userfaultfd */
diff -r edae005eff25 -r 10c3b365d573 sys/compat/linux/arch/aarch64/linux_sysent.c
--- a/sys/compat/linux/arch/aarch64/linux_sysent.c Mon Jul 10 21:08:26 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_sysent.c Mon Jul 10 21:08:37 2023 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.5 2023/07/10 21:08:37 christos Exp $ */
/*
* System call switch table.
*
* 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 <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.4 2021/12/02 04:39:44 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.5 2023/07/10 21:08:37 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -1230,8 +1230,10 @@ struct sysent linux_sysent[] = {
.sy_call = (sy_call_t *)sys_getrandom
}, /* 278 = getrandom */
{
- .sy_call = linux_sys_nosys,
- }, /* 279 = filler */
+ ns(struct linux_sys_memfd_create_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)linux_sys_memfd_create
+ }, /* 279 = memfd_create */
{
.sy_call = linux_sys_nosys,
}, /* 280 = filler */
diff -r edae005eff25 -r 10c3b365d573 sys/compat/linux/arch/aarch64/linux_systrace_args.c
--- a/sys/compat/linux/arch/aarch64/linux_systrace_args.c Mon Jul 10 21:08:26 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_systrace_args.c Mon Jul 10 21:08:37 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.5 2023/07/10 21:08:37 christos Exp $ */
/*
* System call argument to DTrace register array conversion.
@@ -1630,6 +1630,14 @@ systrace_args(register_t sysnum, const v
*n_args = 3;
break;
}
+ /* linux_sys_memfd_create */
+ case 279: {
+ const struct linux_sys_memfd_create_args *p = params;
+ uarg[0] = (intptr_t) SCARG(p, name); /* const char * */
+ uarg[1] = SCARG(p, flags); /* unsigned int */
+ *n_args = 2;
+ break;
+ }
/* linux_sys_statx */
case 291: {
const struct linux_sys_statx_args *p = params;
@@ -4401,6 +4409,19 @@ systrace_entry_setargdesc(int sysnum, in
break;
};
break;
+ /* linux_sys_memfd_create */
+ case 279:
+ switch(ndx) {
+ case 0:
+ p = "const char *";
+ break;
+ case 1:
+ p = "unsigned int";
+ break;
+ default:
+ break;
+ };
+ break;
/* linux_sys_statx */
case 291:
switch(ndx) {
@@ -5355,6 +5376,11 @@ systrace_return_setargdesc(int sysnum, i
if (ndx == 0 || ndx == 1)
p = "ssize_t";
break;
+ /* linux_sys_memfd_create */
+ case 279:
+ if (ndx == 0 || ndx == 1)
+ p = "int";
+ break;
/* linux_sys_statx */
case 291:
if (ndx == 0 || ndx == 1)
Home |
Main Index |
Thread Index |
Old Index