Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common compat/linux: aarch64 does not have ...
details: https://anonhg.NetBSD.org/src/rev/b9b3cf062160
branches: trunk
changeset: 378276:b9b3cf062160
user: rin <rin%NetBSD.org@localhost>
date: Sat Jul 29 07:00:00 2023 +0000
description:
compat/linux: aarch64 does not have epoll_create(2) nor epoll_wait(2)
Note that for Linux, new architectures like arm64 use MI system call
table in include/uapi/asm-generic/unistd.h, instead of MD syscall.tbl.
XXX
Too many ifdef's like this. We should be smarter...
diffstat:
sys/compat/linux/common/linux_misc.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (50 lines):
diff -r 3dc755a607bc -r b9b3cf062160 sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c Sat Jul 29 06:59:47 2023 +0000
+++ b/sys/compat/linux/common/linux_misc.c Sat Jul 29 07:00:00 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.258 2023/07/28 18:19:01 christos Exp $ */
+/* $NetBSD: linux_misc.c,v 1.259 2023/07/29 07:00:00 rin Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.258 2023/07/28 18:19:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.259 2023/07/29 07:00:00 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1683,6 +1683,7 @@ linux_sys_eventfd2(struct lwp *l, const
retval);
}
+#ifndef __aarch64__
/*
* epoll_create(2). Check size and call sys_epoll_create1.
*/
@@ -1705,6 +1706,7 @@ linux_sys_epoll_create(struct lwp *l,
SCARG(&ca, flags) = 0;
return sys_epoll_create1(l, &ca, retval);
}
+#endif /* !__aarch64__ */
/*
* epoll_create1(2). Translate the flags and call sys_epoll_create1.
@@ -1768,6 +1770,7 @@ linux_sys_epoll_ctl(struct lwp *l, const
SCARG(uap, fd), eep);
}
+#ifndef __aarch64__
/*
* epoll_wait(2). Call sys_epoll_pwait().
*/
@@ -1791,6 +1794,7 @@ linux_sys_epoll_wait(struct lwp *l,
return linux_sys_epoll_pwait(l, &ea, retval);
}
+#endif /* !__aarch64__ */
/*
* Main body of epoll_pwait2(2). Translate timeout and sigmask and
Home |
Main Index |
Thread Index |
Old Index