From: Adrian Szyndela Date: Fri, 1 Oct 2021 10:49:48 +0000 (+0200) Subject: kdbus: add memfd_create() syscall number for aarch64 X-Git-Tag: submit/tizen/20211001.142833^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fdbus.git;a=commitdiff_plain;h=a43d9da65a93f23bb5b5341ff177ad817ffd4398 kdbus: add memfd_create() syscall number for aarch64 Citing Lukasz Stelmach : > 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. Additionally, made other numbers same as in glib. Change-Id: Ibb038d5d0de13f8a7b88051364564c541ca0fa9a --- diff --git a/dbus/dbus-transport-kdbus.c b/dbus/dbus-transport-kdbus.c index 2eb532c..5bb82e5 100755 --- a/dbus/dbus-transport-kdbus.c +++ b/dbus/dbus-transport-kdbus.c @@ -57,10 +57,14 @@ #include #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) -# if defined(__arm__) || defined(__aarch64__) +# if defined(__arm__) # define __NR_memfd_create 385 -# elif defined(__i386__) || defined(__x86_64__) +# elif defined(__aarch64__) # define __NR_memfd_create 279 +# elif defined(__i386__) +# define __NR_memfd_create 356 +# elif defined(__x86_64__) +# define __NR_memfd_create 319 # else # error "Architecture not supported" # endif