public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Richard Zidlicky <rz@linux-m68k.org>
To: Nicolas Pitre <nico@cam.org>
Cc: Mark Mielke <mark@mark.mielke.cc>,
	"David S. Miller" <davem@redhat.com>,
	Russell King <rmk@arm.linux.org.uk>,
	simon@baydel.com, alan@lxorguk.ukuu.org.uk,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: The end of embedded Linux?
Date: Mon, 14 Oct 2002 14:26:54 +0200	[thread overview]
Message-ID: <20021014142654.B518@linux-m68k.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0210071307420.913-100000@xanadu.home>; from nico@cam.org on Mon, Oct 07, 2002 at 01:45:35PM -0400

On Mon, Oct 07, 2002 at 01:45:35PM -0400, Nicolas Pitre wrote:
 
> Here's the IO macro issue:  On some embedded platforms the IO bus is only 8
> bit wide or only 16 bit wide, or address lines are shifted so registers
> offsets are not the same, etc.  All this because embedded platforms are
> often using standard ISA peripheral chipsets since they can be easily glued
> to any kind of bare buses or static memory banks.
> 
> The nice thing here is the fact that only by modifying inb() and friends you
> can reuse most current kernel drivers without further modifications.  
> However the modifs to inb() are often different whether the peripheral in
> question is wired to a static memory bank, to the PCMCIA space or onto some
> expansion board via a CPLD or other weirdness some hardware designers are
> pleased to come with.  Hence no global inb() and friend tweaking is possible
> without some performance hit by using a runtime fixup based on the address
> passed to them.

we have all this problems on m68k as well (except that our speed
constraints aren't so terribly strict), don't give up too quickly.

A possible solution is to generate multiple object file from the
same source using a different set of defines for each one. The kbuild
system can already handle it using the CFLAGS_$@ rule and asm/io.h
can then select the appropriate macros for inb etc.

Where it starts to be more interesting is when there are module 
interdependecies (like ne.c and e8390.c) or all the object files 
are to be be linked into kernel. Perhaps EXPORT_SYMBOL() and 
INIT_MODULE() could be tweaked to mangle the names according to 
some special define.

Richard

  parent reply	other threads:[~2002-10-14 19:27 UTC|newest]

Thread overview: 115+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-05 19:36 The end of embedded Linux? Gigi Duru
2002-10-05 19:46 ` Francois Romieu
2002-10-05 19:49 ` Ben Greear
2002-10-05 19:53 ` Andre Hedrick
2002-10-05 20:52   ` Gigi Duru
2002-10-05 20:58     ` Mark Mielke
2002-10-06  1:54       ` Andre Hedrick
2002-10-07 23:28       ` Gigi Duru
2002-10-06  0:46     ` Rik van Riel
2002-10-06  1:52     ` Andre Hedrick
2002-10-06 20:20       ` Gigi Duru
2002-10-07  2:01         ` Andre Hedrick
2002-10-06  4:28     ` David S. Miller
2002-10-06 16:53       ` Alan Cox
2002-10-06 18:50         ` george anzinger
2002-10-07 10:06         ` simon
2002-10-07 10:36           ` David S. Miller
2002-10-07 11:57             ` Russell King
2002-10-07 12:10               ` Abraham vd Merwe
2002-10-07 14:12                 ` Alan Cox
2002-10-07 16:05               ` Nicolas Pitre
2002-10-07 16:02                 ` David S. Miller
2002-10-07 16:20                   ` Benjamin LaHaise
2002-10-07 16:38                   ` Nicolas Pitre
2002-10-07 16:53                   ` Mark Mielke
2002-10-07 17:45                     ` Nicolas Pitre
2002-10-07 18:11                       ` Richard B. Johnson
2002-10-07 18:54                       ` george anzinger
2002-10-07 19:11                         ` Russell King
2002-10-07 20:05                           ` Ben Greear
2002-10-12 10:08                       ` Richard Zidlicky
2002-10-14 12:26                       ` Richard Zidlicky [this message]
2002-10-07 17:15             ` simon
2002-10-07 17:24               ` David S. Miller
2002-10-07 20:22               ` Alan Cox
2002-10-07 22:22                 ` Christer Weinigel
2002-10-07 22:52                   ` Alan Cox
2002-10-07 22:56                     ` Arnaldo Carvalho de Melo
2002-10-09 11:19                     ` Jamie Lokier
2002-10-08 10:11                 ` simon
2002-10-08 11:11                   ` jbradford
2002-10-08 11:53                     ` Richard B. Johnson
2002-10-08 12:09                       ` jbradford
2002-10-08 11:25                   ` Vojtech Pavlik
2002-10-08 11:25                   ` Alan Cox
2002-10-08 20:04                     ` David S. Miller
2002-10-08 22:53                       ` Alan Cox
2002-10-08 22:38                         ` David S. Miller
2002-10-08 11:27                   ` jw schultz
2002-10-09  7:37                     ` Alexander Kellett
2002-10-09 11:49                       ` Alan Cox
2002-10-09 11:53                         ` Richard B. Johnson
2002-10-09 19:17                           ` jbradford
2002-10-09 23:49                             ` jw schultz
2002-10-13 16:30                         ` Eric W. Biederman
2002-10-09 12:42                       ` Ian Molton
2002-10-10  4:47                       ` Shane Nay
2002-10-08 15:52                   ` David Lang
2002-10-09 10:53                     ` David Woodhouse
2002-10-07 10:55           ` Xavier Bestel
2002-10-07 17:20             ` simon
2002-10-07 22:59               ` Arnaldo Carvalho de Melo
2002-10-07 23:18                 ` Alan Cox
2002-10-07 16:15         ` Matt Porter
2002-10-07 16:22       ` Matt Porter
2002-10-07 16:41         ` Rob Landley
2002-10-07 21:56           ` Gigi Duru
2002-10-07 19:44             ` Rob Landley
2002-10-08 13:22               ` Thomas Molina
2002-10-08 16:34                 ` Rob Landley
2002-10-07 23:20           ` Matt Porter
2002-10-07 19:50             ` Rob Landley
2002-10-08 15:04               ` Matt Porter
2002-10-08 16:52                 ` Rob Landley
2002-10-09 11:38                   ` Adrian Bunk
2002-10-09 12:15                     ` [patch] show Fusion MPT dialog only when CONFIG_BLK_DEV_SD is set Adrian Bunk
2002-10-09 19:55                       ` Rob Landley
2002-10-09 19:54                     ` [PATCH]: Move Fusion MPT config menu into scsi driver support (was Re: The end of embedded Linux?) Rob Landley
2002-10-07 23:01         ` The end of embedded Linux? Arnaldo Carvalho de Melo
2002-10-07 23:23           ` Alan Cox
2002-10-07 23:47             ` Arnaldo Carvalho de Melo
2002-10-08  0:06               ` Arnaldo Carvalho de Melo
2002-10-08  1:23             ` Xcytame@yahoo.es
2002-10-06 13:02     ` Ian Molton
2002-10-05 19:53 ` jbradford
2002-10-05 22:23 ` Oliver Xymoron
2002-10-05 23:28   ` Arnaldo Carvalho de Melo
2002-10-06  1:57     ` Andre Hedrick
2002-10-12  4:01   ` Daniel Phillips
2002-10-12  4:09     ` William Lee Irwin III
2002-10-06  0:36 ` Rik van Riel
2002-10-06  0:41 ` Zwane Mwaikambo
2002-10-06  0:50   ` William Lee Irwin III
2002-10-06  1:00     ` Zwane Mwaikambo
2002-10-06  0:44 ` William Lee Irwin III
2002-10-06 22:24   ` Aaron Lehmann
2002-10-06 22:54     ` William Lee Irwin III
2002-10-07  1:33     ` Andre Hedrick
2002-10-07 22:25     ` Andre Hedrick
2002-10-07  9:10 ` Jan-Benedict Glaw
     [not found] <Pine.LNX.4.33.0210061854190.24860-100000@coffee.psychology.mcmaster.ca>
2002-10-07  5:38 ` Gigi Duru
2002-10-07  5:42   ` Rik van Riel
2002-10-07  6:06     ` Arnaldo Carvalho de Melo
2002-10-07 12:04   ` Richard B. Johnson
2002-10-07 12:00     ` David S. Miller
2002-10-07 12:32       ` Richard B. Johnson
2002-10-07 12:29         ` David S. Miller
2002-10-07 13:06   ` Dana Lacoste
  -- strict thread matches above, loose matches on Subject: below --
2002-10-07 20:04 Hell.Surfers
2002-10-07 23:01 ` David S. Miller
2002-10-08  0:10   ` jw schultz
2002-10-08  9:36 Hell.Surfers
2002-10-08  9:51 Hell.Surfers
2002-10-08 20:00 ` David S. Miller
2002-10-08 12:05 Hicks, Jamey
2002-10-12 20:45 Hell.Surfers

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=20021014142654.B518@linux-m68k.org \
    --to=rz@linux-m68k.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark@mark.mielke.cc \
    --cc=nico@cam.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=simon@baydel.com \
    /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