Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1214755 > unrolled thread
| Started by | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
|---|---|
| First post | 2015-08-27 20:10 +0200 |
| Last post | 2015-09-03 17:50 +0200 |
| Articles | 3 — 2 participants |
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.
[RFC PATCH 9/9] parisc: allocate sys_membarrier system call number Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2015-08-27 20:10 +0200
Re: [RFC PATCH 9/9] parisc: allocate sys_membarrier system call number "Helge Deller" <deller@gmx.de> - 2015-09-03 14:30 +0200
Re: [RFC PATCH 9/9] parisc: allocate sys_membarrier system call number Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2015-09-03 17:50 +0200
| From | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
|---|---|
| Date | 2015-08-27 20:10 +0200 |
| Subject | [RFC PATCH 9/9] parisc: allocate sys_membarrier system call number |
| Message-ID | <q29MC-3F0-25@gated-at.bofh.it> |
[ Untested on this architecture. To try it out: fetch linux-next/akpm, apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ] Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> CC: Andrew Morton <akpm@linux-foundation.org> CC: linux-api@vger.kernel.org CC: "James E.J. Bottomley" <jejb@parisc-linux.org> CC: Helge Deller <deller@gmx.de> CC: linux-parisc@vger.kernel.org --- arch/parisc/include/uapi/asm/unistd.h | 3 ++- arch/parisc/kernel/syscall_table.S | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/parisc/include/uapi/asm/unistd.h b/arch/parisc/include/uapi/asm/unistd.h index 2e639d7..dadcada 100644 --- a/arch/parisc/include/uapi/asm/unistd.h +++ b/arch/parisc/include/uapi/asm/unistd.h @@ -358,8 +358,9 @@ #define __NR_memfd_create (__NR_Linux + 340) #define __NR_bpf (__NR_Linux + 341) #define __NR_execveat (__NR_Linux + 342) +#define __NR_membarrier (__NR_Linux + 343) -#define __NR_Linux_syscalls (__NR_execveat + 1) +#define __NR_Linux_syscalls (__NR_membarrier + 1) #define __IGNORE_select /* newselect */ diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S index 8eefb12..2faa43b 100644 --- a/arch/parisc/kernel/syscall_table.S +++ b/arch/parisc/kernel/syscall_table.S @@ -438,6 +438,7 @@ ENTRY_SAME(memfd_create) /* 340 */ ENTRY_SAME(bpf) ENTRY_COMP(execveat) + ENTRY_COMP(membarrier) .ifne (. - 90b) - (__NR_Linux_syscalls * (91b - 90b)) -- 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] | [next] | [standalone]
| From | "Helge Deller" <deller@gmx.de> |
|---|---|
| Date | 2015-09-03 14:30 +0200 |
| Subject | Re: [RFC PATCH 9/9] parisc: allocate sys_membarrier system call number |
| Message-ID | <q4BOp-3tf-5@gated-at.bofh.it> |
| In reply to | #1214755 |
Hi Mathieu, > [ Untested on this architecture. To try it out: fetch linux-next/akpm, > apply this patch, build/run a membarrier-enabled kernel, and do make > kselftest. ] > > Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> > CC: Andrew Morton <akpm@linux-foundation.org> > CC: linux-api@vger.kernel.org > CC: "James E.J. Bottomley" <jejb@parisc-linux.org> > CC: Helge Deller <deller@gmx.de> > CC: linux-parisc@vger.kernel.org > --- > arch/parisc/include/uapi/asm/unistd.h | 3 ++- > arch/parisc/kernel/syscall_table.S | 1 + > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/parisc/include/uapi/asm/unistd.h b/arch/parisc/include/uapi/asm/unistd.h > index 2e639d7..dadcada 100644 > --- a/arch/parisc/include/uapi/asm/unistd.h > +++ b/arch/parisc/include/uapi/asm/unistd.h > @@ -358,8 +358,9 @@ > #define __NR_memfd_create (__NR_Linux + 340) > #define __NR_bpf (__NR_Linux + 341) > #define __NR_execveat (__NR_Linux + 342) > +#define __NR_membarrier (__NR_Linux + 343) > > -#define __NR_Linux_syscalls (__NR_execveat + 1) > +#define __NR_Linux_syscalls (__NR_membarrier + 1) > > > #define __IGNORE_select /* newselect */ > diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S > index 8eefb12..2faa43b 100644 > --- a/arch/parisc/kernel/syscall_table.S > +++ b/arch/parisc/kernel/syscall_table.S > @@ -438,6 +438,7 @@ > ENTRY_SAME(memfd_create) /* 340 */ > ENTRY_SAME(bpf) > ENTRY_COMP(execveat) > + ENTRY_COMP(membarrier) This needs to be ENTRY_SAME(membarrier), since you don't have/need a compat_membarrier() function. After changing to ENTRY_SAME() I did run the kselftest on parisc: deller@ls3xx> ./membarrier_test membarrier MEMBARRIER_CMD_QUERY syscall available. membarrier: MEMBARRIER_CMD_SHARED success. membarrier: tests done! Helge -- 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] | [prev] | [next] | [standalone]
| From | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
|---|---|
| Date | 2015-09-03 17:50 +0200 |
| Subject | Re: [RFC PATCH 9/9] parisc: allocate sys_membarrier system call number |
| Message-ID | <q4EVX-7Sc-3@gated-at.bofh.it> |
| In reply to | #1218214 |
----- On Sep 3, 2015, at 8:26 AM, Helge Deller deller@gmx.de wrote: > Hi Mathieu, > >> [ Untested on this architecture. To try it out: fetch linux-next/akpm, >> apply this patch, build/run a membarrier-enabled kernel, and do make >> kselftest. ] >> >> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> >> CC: Andrew Morton <akpm@linux-foundation.org> >> CC: linux-api@vger.kernel.org >> CC: "James E.J. Bottomley" <jejb@parisc-linux.org> >> CC: Helge Deller <deller@gmx.de> >> CC: linux-parisc@vger.kernel.org >> --- >> arch/parisc/include/uapi/asm/unistd.h | 3 ++- >> arch/parisc/kernel/syscall_table.S | 1 + >> 2 files changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/arch/parisc/include/uapi/asm/unistd.h >> b/arch/parisc/include/uapi/asm/unistd.h >> index 2e639d7..dadcada 100644 >> --- a/arch/parisc/include/uapi/asm/unistd.h >> +++ b/arch/parisc/include/uapi/asm/unistd.h >> @@ -358,8 +358,9 @@ >> #define __NR_memfd_create (__NR_Linux + 340) >> #define __NR_bpf (__NR_Linux + 341) >> #define __NR_execveat (__NR_Linux + 342) >> +#define __NR_membarrier (__NR_Linux + 343) >> >> -#define __NR_Linux_syscalls (__NR_execveat + 1) >> +#define __NR_Linux_syscalls (__NR_membarrier + 1) >> >> >> #define __IGNORE_select /* newselect */ >> diff --git a/arch/parisc/kernel/syscall_table.S >> b/arch/parisc/kernel/syscall_table.S >> index 8eefb12..2faa43b 100644 >> --- a/arch/parisc/kernel/syscall_table.S >> +++ b/arch/parisc/kernel/syscall_table.S >> @@ -438,6 +438,7 @@ >> ENTRY_SAME(memfd_create) /* 340 */ >> ENTRY_SAME(bpf) >> ENTRY_COMP(execveat) >> + ENTRY_COMP(membarrier) > > This needs to be ENTRY_SAME(membarrier), since you don't have/need a > compat_membarrier() function. Allright, will fix. > > After changing to ENTRY_SAME() I did run the kselftest on parisc: > deller@ls3xx> ./membarrier_test > membarrier MEMBARRIER_CMD_QUERY syscall available. > membarrier: MEMBARRIER_CMD_SHARED success. > membarrier: tests done! And add your Tested-by tag, thanks! Mathieu > > Helge -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com -- 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] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web