mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eyal Lebedinsky <eyal@eyal.emu.id.au>
To: linux-kernel@vger.kernel.org
Subject: Re: question from linuxppc group
Date: Wed, 26 Sep 2001 09:39:24 +1000	[thread overview]
Message-ID: <3BB115AC.9D1A8EC8@eyal.emu.id.au> (raw)
In-Reply-To: <3BB0E2F2.CD668D18@wvi.com>

Jim Potter wrote:
> 
> We have  a host bridge (plus PIC, mem ctlr, etc.) that is essentially
> identical
> for ppc and mips.  Where is the best place to put the code since we
> don't want to
> duplicate it for both architectures?

A common practice is to create a pseudo-arch directory, let's called
it 'shared' or 'common' and under it a directory for each component
that is shared. We can now have symbolic links for s shared file:
	arch/[mips|ppc]/pic.c -> arch/shared/pic-mippc.c

Or, for a shared subsystem 'pic1234'
	arch/[mips|ppc]/pic -> arch/shared/pic-mippc

One can even look at more similar archs and have
	arch/[mips|ppc]/pic -> arch/shared/mippc/pic
	arch/[mips|ppc]/mem -> arch/shared/mippc/mem

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.anu.edu.au/eyal/>

  parent reply	other threads:[~2001-09-25 23:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-25 20:02 Jim Potter
2001-09-25 21:35 ` Benjamin Herrenschmidt
2001-09-25 21:42   ` James Simmons
2001-09-25 21:54   ` Tom Rini
2001-09-25 23:39 ` Eyal Lebedinsky [this message]
2001-09-25 21:36 Benjamin Herrenschmidt

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=3BB115AC.9D1A8EC8@eyal.emu.id.au \
    --to=eyal@eyal.emu.id.au \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®