Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1223938 > unrolled thread

[PATCH v2 4/4] m68k: Wire up membarrier

Started byGeert Uytterhoeven <geert@linux-m68k.org>
First post2015-09-14 11:00 +0200
Last post2015-09-14 11:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 4/4] m68k: Wire up membarrier Geert Uytterhoeven <geert@linux-m68k.org> - 2015-09-14 11:00 +0200

#1223938 — [PATCH v2 4/4] m68k: Wire up membarrier

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2015-09-14 11:00 +0200
Subject[PATCH v2 4/4] m68k: Wire up membarrier
Message-ID<q8xMe-1gc-5@gated-at.bofh.it>
$ ./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>
--
v2:
  - New.
---
 arch/m68k/include/asm/unistd.h      | 2 +-
 arch/m68k/include/uapi/asm/unistd.h | 1 +
 arch/m68k/kernel/syscalltable.S     | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h
index 887667ad6a2f9536..b38c32fd7d96ab6a 100644
--- a/arch/m68k/include/asm/unistd.h
+++ b/arch/m68k/include/asm/unistd.h
@@ -4,7 +4,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls		385
+#define NR_syscalls		386
 
 #define __ARCH_WANT_OLD_READDIR
 #define __ARCH_WANT_OLD_STAT
diff --git a/arch/m68k/include/uapi/asm/unistd.h b/arch/m68k/include/uapi/asm/unistd.h
index 98298206127d0930..239fefc60e737343 100644
--- a/arch/m68k/include/uapi/asm/unistd.h
+++ b/arch/m68k/include/uapi/asm/unistd.h
@@ -390,5 +390,6 @@
 #define __NR_shmctl		382
 #define __NR_shmat		383
 #define __NR_shmdt		384
+#define __NR_membarrier		385
 
 #endif /* _UAPI_ASM_M68K_UNISTD_H_ */
diff --git a/arch/m68k/kernel/syscalltable.S b/arch/m68k/kernel/syscalltable.S
index dd6de8bb9b7c7aa4..42dca8613ef02b38 100644
--- a/arch/m68k/kernel/syscalltable.S
+++ b/arch/m68k/kernel/syscalltable.S
@@ -405,3 +405,4 @@ ENTRY(sys_call_table)
 	.long sys_shmctl
 	.long sys_shmat
 	.long sys_shmdt
+	.long sys_membarrier		/* 385 */
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web