diff options
author | Łukasz Stelmach <l.stelmach@samsung.com> | 2021-01-12 14:18:02 +0100 |
---|---|---|
committer | Łukasz Stelmach <l.stelmach@samsung.com> | 2021-01-12 17:04:15 +0100 |
commit | 038d7f103ce7bf6c30447083e43112c23200d0f6 (patch) | |
tree | 3df04f335868839e211a0f00398c88a822cdc315 | |
parent | 63842eb53afd7a1311eb06ff4f891e59e12e5fb3 (diff) | |
download | glib-038d7f103ce7bf6c30447083e43112c23200d0f6.tar.gz glib-038d7f103ce7bf6c30447083e43112c23200d0f6.tar.bz2 glib-038d7f103ce7bf6c30447083e43112c23200d0f6.zip |
glib-linux: add memfd_create() syscall number for arm64 architecture
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>
-rw-r--r-- | glib/glib-linux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glib/glib-linux.h b/glib/glib-linux.h index e41758469..8f8882c44 100644 --- a/glib/glib-linux.h +++ b/glib/glib-linux.h @@ -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 |