Sat Jul 29 07:00:00 2023 UTC ()
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...


(rin)
diff -r1.258 -r1.259 src/sys/compat/linux/common/linux_misc.c

cvs diff -r1.258 -r1.259 src/sys/compat/linux/common/linux_misc.c (expand / switch to context diff)
--- src/sys/compat/linux/common/linux_misc.c 2023/07/28 18:19:01 1.258
+++ src/sys/compat/linux/common/linux_misc.c 2023/07/29 07:00:00 1.259
@@ -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 @@
 				 retval);
 }
 
+#ifndef __aarch64__
 /*
  * epoll_create(2).  Check size and call sys_epoll_create1.
  */
@@ -1705,6 +1706,7 @@
 	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 @@
 	    SCARG(uap, fd), eep);
 }
 
+#ifndef __aarch64__
 /*
  * epoll_wait(2).  Call sys_epoll_pwait().
  */
@@ -1791,6 +1794,7 @@
 
 	return linux_sys_epoll_pwait(l, &ea, retval);
 }
+#endif /* !__aarch64__ */
 
 /*
  * Main body of epoll_pwait2(2).  Translate timeout and sigmask and