glib-linux: add memfd_create() syscall number for arm64 architecture 30/251330/1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 12 Jan 2021 13:18:02 +0000 (14:18 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 12 Jan 2021 16:04:15 +0000 (17:04 +0100)
The number of the memfd_syscall() on arm64 is the same as on arm only
for 32-bit processes. 64-bit process must use the number defined in the
asm-generic/unistd.h kernel header.

Change-Id: I745ce2b97fca72804ef9ad11fe9787cd9ebeed06
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
glib/glib-linux.h

index e417584..8f8882c 100644 (file)
@@ -82,8 +82,9 @@ glib_linux_futex (int                   *uaddr,
 #  elif defined i386
 #    define __NR_memfd_create 356
 #  elif defined __arm__
-     /* arm and arm64 have the same value */
 #    define __NR_memfd_create 385
+#  elif defined __aarch64__
+#    define __NR_memfd_create 279
 #  elif defined _MIPS_SIM
 #    if _MIPS_SIM == _MIPS_SIM_ABI32
 #      define __NR_memfd_create 4354