linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] powerpc: Individual System V IPC system calls
@ 2015-09-24  5:39 Sam Bobroff
  2015-09-25  0:33 ` Michael Ellerman
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Bobroff @ 2015-09-24  5:39 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: anton, mikey

This patch provides individual system call numbers for the following
System V IPC system calls, on PowerPC, so that they do not need to be
multiplexed:
* semop, semget, semctl, semtimedop
* msgsnd, msgrcv, msgget, msgctl
* shmat, shmdt, shmget, shmctl

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
---

 arch/powerpc/include/asm/systbl.h      | 12 ++++++++++++
 arch/powerpc/include/asm/unistd.h      |  2 +-
 arch/powerpc/include/uapi/asm/unistd.h | 12 ++++++++++++
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index 71f2b3f..546b9ec 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -368,3 +368,15 @@ SYSCALL_SPU(memfd_create)
 SYSCALL_SPU(bpf)
 COMPAT_SYS(execveat)
 PPC64ONLY(switch_endian)
+SYSCALL(semop)
+SYSCALL(semget)
+COMPAT_SYS(semctl)
+COMPAT_SYS(semtimedop)
+COMPAT_SYS(msgsnd)
+COMPAT_SYS(msgrcv)
+SYSCALL(msgget)
+COMPAT_SYS(msgctl)
+COMPAT_SYS(shmat)
+SYSCALL(shmdt)
+SYSCALL(shmget)
+COMPAT_SYS(shmctl)
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index f4f8b66..e51c51b 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define __NR_syscalls		364
+#define __NR_syscalls		376
 
 #define __NR__exit __NR_exit
 #define NR_syscalls	__NR_syscalls
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h
index e4aa173..a8390ee 100644
--- a/arch/powerpc/include/uapi/asm/unistd.h
+++ b/arch/powerpc/include/uapi/asm/unistd.h
@@ -386,5 +386,17 @@
 #define __NR_bpf		361
 #define __NR_execveat		362
 #define __NR_switch_endian	363
+#define __NR_semop		364
+#define __NR_semget		365
+#define __NR_semctl		366
+#define __NR_semtimedop		367
+#define __NR_msgsnd		368
+#define __NR_msgrcv		369
+#define __NR_msgget		370
+#define __NR_msgctl		371
+#define __NR_shmat		372
+#define __NR_shmdt		373
+#define __NR_shmget		374
+#define __NR_shmctl		375
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] powerpc: Individual System V IPC system calls
  2015-09-24  5:39 [PATCH 1/1] powerpc: Individual System V IPC system calls Sam Bobroff
@ 2015-09-25  0:33 ` Michael Ellerman
  2015-09-25  0:59   ` Sam Bobroff
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Ellerman @ 2015-09-25  0:33 UTC (permalink / raw)
  To: Sam Bobroff; +Cc: linuxppc-dev, mikey, anton

On Thu, 2015-09-24 at 15:39 +1000, Sam Bobroff wrote:
> This patch provides individual system call numbers for the following
> System V IPC system calls, on PowerPC, so that they do not need to be
> multiplexed:
> * semop, semget, semctl, semtimedop
> * msgsnd, msgrcv, msgget, msgctl
> * shmat, shmdt, shmget, shmctl

Thanks.

Can you please rebase this on top of linux-next, where we have two new
syscalls wired up. It should be trivial, just the numbering changes, but I
think you have a modified libc to actually test the result.

cheers

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] powerpc: Individual System V IPC system calls
  2015-09-25  0:33 ` Michael Ellerman
@ 2015-09-25  0:59   ` Sam Bobroff
  0 siblings, 0 replies; 3+ messages in thread
From: Sam Bobroff @ 2015-09-25  0:59 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, mikey, anton

On Fri, Sep 25, 2015 at 10:33:37AM +1000, Michael Ellerman wrote:
> On Thu, 2015-09-24 at 15:39 +1000, Sam Bobroff wrote:
> > This patch provides individual system call numbers for the following
> > System V IPC system calls, on PowerPC, so that they do not need to be
> > multiplexed:
> > * semop, semget, semctl, semtimedop
> > * msgsnd, msgrcv, msgget, msgctl
> > * shmat, shmdt, shmget, shmctl
> 
> Thanks.
> 
> Can you please rebase this on top of linux-next, where we have two new
> syscalls wired up. It should be trivial, just the numbering changes, but I
> think you have a modified libc to actually test the result.

No problem, and yes I can test the glibc changes :-)

Cheers,
Sam.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-25  1:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-24  5:39 [PATCH 1/1] powerpc: Individual System V IPC system calls Sam Bobroff
2015-09-25  0:33 ` Michael Ellerman
2015-09-25  0:59   ` Sam Bobroff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).