m68k: Wire up membarrier
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 13 Sep 2015 09:49:13 +0000 (11:49 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 28 Sep 2015 07:59:44 +0000 (09:59 +0200)
$ ./membarrier_test
membarrier MEMBARRIER_CMD_QUERY syscall available.
membarrier: MEMBARRIER_CMD_SHARED success.
membarrier: tests done!
$

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/include/asm/unistd.h
arch/m68k/include/uapi/asm/unistd.h
arch/m68k/kernel/syscalltable.S

index d25d5a5c83cb6d6be7f1a3b563193f98059378c1..0793a7f174176e6d590ca4d9567a9e3523c42c50 100644 (file)
@@ -4,7 +4,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls            374
+#define NR_syscalls            375
 
 #define __ARCH_WANT_OLD_READDIR
 #define __ARCH_WANT_OLD_STAT
index 0eebb28488eced367909e5aad0984728fc702bcd..5e6fae6c275f9b110464cb80bbb47187c2251dcd 100644 (file)
 #define __NR_recvmmsg          371
 #define __NR_sendmmsg          372
 #define __NR_userfaultfd       373
+#define __NR_membarrier                374
 
 #endif /* _UAPI_ASM_M68K_UNISTD_H_ */
index 7b5a315f6df2c770786e01926c5c7d377a9a51ce..5dd0e80042f51107e63e0fcd832f4c46c85b826c 100644 (file)
@@ -394,3 +394,4 @@ ENTRY(sys_call_table)
        .long sys_recvmmsg
        .long sys_sendmmsg
        .long sys_userfaultfd
+       .long sys_membarrier