sparc/sparc64: allocate sys_membarrier system call number
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 9 Nov 2015 22:58:06 +0000 (14:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 9 Nov 2015 23:11:24 +0000 (15:11 -0800)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sparc/include/uapi/asm/unistd.h
arch/sparc/kernel/systbls_32.S
arch/sparc/kernel/systbls_64.S

index 6f35f4df17f281f5aa52c31381a6b781629bbbb0..efe9479f837bb50d289106cd22128292dd19ef5f 100644 (file)
 #define __NR_memfd_create      348
 #define __NR_bpf               349
 #define __NR_execveat          350
+#define __NR_membarrier                351
 
-#define NR_syscalls            351
+#define NR_syscalls            352
 
 /* Bitmask values returned from kern_features system call.  */
 #define KERN_FEATURE_MIXED_MODE_STACK  0x00000001
index e31a9056a3039ad5e5b2b7da5abe7f18509d1107..cc23b62b6e38a858c7e077c6b2c0757a63803b3d 100644 (file)
@@ -87,4 +87,4 @@ sys_call_table:
 /*335*/        .long sys_syncfs, sys_sendmmsg, sys_setns, sys_process_vm_readv, sys_process_vm_writev
 /*340*/        .long sys_ni_syscall, sys_kcmp, sys_finit_module, sys_sched_setattr, sys_sched_getattr
 /*345*/        .long sys_renameat2, sys_seccomp, sys_getrandom, sys_memfd_create, sys_bpf
-/*350*/        .long sys_execveat
+/*350*/        .long sys_execveat, sys_membarrier
index d72f76ae70eba5a7418630c7e1890a6e239675cd..f229468a747975ea7eb0dac89886747efb52f773 100644 (file)
@@ -88,7 +88,7 @@ sys_call_table32:
        .word sys_syncfs, compat_sys_sendmmsg, sys_setns, compat_sys_process_vm_readv, compat_sys_process_vm_writev
 /*340*/        .word sys_kern_features, sys_kcmp, sys_finit_module, sys_sched_setattr, sys_sched_getattr
        .word sys32_renameat2, sys_seccomp, sys_getrandom, sys_memfd_create, sys_bpf
-/*350*/        .word sys32_execveat
+/*350*/        .word sys32_execveat, sys_membarrier
 
 #endif /* CONFIG_COMPAT */
 
@@ -168,4 +168,4 @@ sys_call_table:
        .word sys_syncfs, sys_sendmmsg, sys_setns, sys_process_vm_readv, sys_process_vm_writev
 /*340*/        .word sys_kern_features, sys_kcmp, sys_finit_module, sys_sched_setattr, sys_sched_getattr
        .word sys_renameat2, sys_seccomp, sys_getrandom, sys_memfd_create, sys_bpf
-/*350*/        .word sys64_execveat
+/*350*/        .word sys64_execveat, sys_membarrier