diff options
author | Adrian Szyndela <adrian.s@samsung.com> | 2021-10-01 12:49:48 +0200 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2021-10-01 12:49:48 +0200 |
commit | a43d9da65a93f23bb5b5341ff177ad817ffd4398 (patch) | |
tree | 4f54aab0dc1d74f19d47f5a69271efd929709423 | |
parent | b2e18db273c588bf483b10b81b53790abc88d21b (diff) | |
download | dbus-a43d9da65a93f23bb5b5341ff177ad817ffd4398.tar.gz dbus-a43d9da65a93f23bb5b5341ff177ad817ffd4398.tar.bz2 dbus-a43d9da65a93f23bb5b5341ff177ad817ffd4398.zip |
kdbus: add memfd_create() syscall number for aarch64submit/tizen/20211001.142833
Citing Lukasz Stelmach <l.stelmach@samsung.com>:
> 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
-rwxr-xr-x | dbus/dbus-transport-kdbus.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dbus/dbus-transport-kdbus.c b/dbus/dbus-transport-kdbus.c index 2eb532c4..5bb82e5e 100755 --- a/dbus/dbus-transport-kdbus.c +++ b/dbus/dbus-transport-kdbus.c @@ -57,10 +57,14 @@ #include <linux/version.h> #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 |