lkml.org 
[lkml]   [1996]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Life after 2.0...
Date
> One thing that bugs me: there is not a clean line in the kernel
> code between code that is arch specific and arch independent.

There isnt always in the hardware either ;)

> My humble belief is that any code relies on a arch specific
> feature, it should be in the respective 'arch' directory, and not
> thrown in with everything else.

> - there isn't an 'arch' directory for arch specific headers.
> 'asm' is currently being used for this, but its naming
> implies assembly-only stuff. Perhaps it should be renamed,
> or a new 'linux/include/arch' symbolic directory link added.

Linux8086 uses this naming. I feel its better. In fact arch/include would
be even more sensible.

> - each driver subdirectory is chock full of drivers, some of
> which are _VERY_ platform specific (and some which are not).
> This suggest to me there needs to be a link to an arch specific
> directory of drivers in each one of these subdirectories.

Very few of them wont in theory run both Alpha & PC. PCI as you have observed
makes things worse. There is code shared from common driver blocks into
all sorts of host specific drivers too.

Alan



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.136 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site