Jim Potter wrote:
> We have a host bridge (plus PIC, mem ctlr, etc.) that is essentially
> 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 (firstname.lastname@example.org) <http://samba.anu.edu.au/eyal/> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 21:00:38 EST