linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@cs.anu.edu.au>
To: karimi@cs.uregina.ca
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: DIPC for PowerPC
Date: Mon, 26 Jul 1999 10:21:53 +1000	[thread overview]
Message-ID: <199907260021.KAA01971@tango.anu.edu.au> (raw)
In-Reply-To: <Pine.SGI.3.91.990723194451.18857P-100000@MERCURY.CS.UREGINA.CA> (message from Kamran Karimi on Fri, 23 Jul 1999 19:48:31 -0600 (CST))


Kamran Karimi <karimi@cs.uregina.ca> wrote:

>  I did a blind port of DIPC (http://wallybox.cei.net/dipc) to PowerPC

I tried it on the weekend.  I had to make a couple of small changes to
get the kernel to compile: asm-ppc/ipc.h didn't define DIPC, and PPC
systems (at least the vast majority of the systems that Linux will run
on) are 32-bit, not 64-bit.  I have appended below the diffs for
include/asm-ppc (ipc.h and dipc.h).

I had to hack the userland stuff a bit to get it to compile, due to
the fact that we use glibc-2.1 which doesn't define union semun.  It
seems to work fine on one machine, but when I tried using two, dipcd
on the second machine wasn't creating the ~dipcd/referee_backdoor
socket which seems to be necessary.  I haven't figured out why yet.

Paul.

diff -urN linux/include/asm-ppc/dipc.h pmac/include/asm-ppc/dipc.h
--- linux/include/asm-ppc/dipc.h	Thu Jan  1 10:00:00 1970
+++ pmac/include/asm-ppc/dipc.h	Sun Jul 25 19:45:44 1999
@@ -0,0 +1,10 @@
+/*
+ * (C) Kamran Karimi
+ */
+ 
+#ifndef _ASM_DIPC_H
+#define _ASM_DIPC_H
+
+#define MY_DIPC_ARCH LINUX_BIG_32
+
+#endif _ASM_DIPC_H
diff -urN linux/include/asm-ppc/ipc.h pmac/include/asm-ppc/ipc.h
--- linux/include/asm-ppc/ipc.h	Fri May 14 22:08:03 1999
+++ pmac/include/asm-ppc/ipc.h	Sun Jul 25 20:04:09 1999
@@ -23,6 +23,9 @@
 #define SHMGET		23
 #define SHMCTL		24
 
+/* Used by the DIPC package, try and avoid reusing it */
+#define DIPC            25
+
 #define IPCCALL(version,op)	((version)<<16 | (op))
 
 #endif /* __PPC_IPC_H__ */

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

  reply	other threads:[~1999-07-26  0:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-24  1:48 DIPC for PowerPC Kamran Karimi
1999-07-26  0:21 ` Paul Mackerras [this message]
1999-07-26  1:57   ` Kamran Karimi
1999-07-27 20:42     ` Tom Rini
1999-07-27 20:48       ` Kamran Karimi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199907260021.KAA01971@tango.anu.edu.au \
    --to=paulus@cs.anu.edu.au \
    --cc=Paul.Mackerras@cs.anu.edu.au \
    --cc=karimi@cs.uregina.ca \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).