summaryrefslogtreecommitdiff
path: root/arch/x32/bits
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-11-18 23:31:37 +0000
committerRich Felker <dalias@aerifal.cx>2016-01-26 18:28:20 -0500
commit09001a8f97ac779573976b5838e3d293f1713c5c (patch)
tree1a45ec88633aa3bd7fd45ee1d42802445930cc56 /arch/x32/bits
parent37bfb68f688772e7ce339ab72b9ddcf86ac1e8a8 (diff)
downloadmusl-09001a8f97ac779573976b5838e3d293f1713c5c.tar.gz
add new membarrier, userfaultfd and switch_endian syscalls
new in linux v4.3 added for aarch64, arm, i386, mips, or1k, powerpc, x32 and x86_64. membarrier is a system wide memory barrier, moves most of the synchronization cost to one side, new in kernel commit 5b25b13ab08f616efd566347d809b4ece54570d1 userfaultfd is useful for qemu and is new in kernel commit 8d2afd96c20316d112e04d935d9e09150e988397 switch_endian is powerpc only for switching endianness, new in commit 529d235a0e190ded1d21ccc80a73e625ebcad09b
Diffstat (limited to 'arch/x32/bits')
-rw-r--r--arch/x32/bits/syscall.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x32/bits/syscall.h b/arch/x32/bits/syscall.h
index 5a6d4d10..6240c356 100644
--- a/arch/x32/bits/syscall.h
+++ b/arch/x32/bits/syscall.h
@@ -277,6 +277,8 @@
#define __NR_memfd_create (__X32_SYSCALL_BIT + 319)
#define __NR_kexec_file_load (__X32_SYSCALL_BIT + 320)
#define __NR_bpf (__X32_SYSCALL_BIT + 321)
+#define __NR_userfaultfd (__X32_SYSCALL_BIT + 323)
+#define __NR_membarrier (__X32_SYSCALL_BIT + 324)
#define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512)
#define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513)
@@ -607,6 +609,8 @@
#define SYS_memfd_create __NR_memfd_create
#define SYS_kexec_file_load __NR_kexec_file_load
#define SYS_bpf __NR_bpf
+#define SYS_userfaultfd __NR_userfaultfd
+#define SYS_membarrier __NR_membarrier
#define SYS_rt_sigaction __NR_rt_sigaction