On Wed, Oct 02, 2002 at 04:02:55PM +0200, Carsten Langgaard wrote:
> > Much of the code is so generic it almost deserves to live in a directory
> > even higher in the hierarchy. If you look at the 32-bit compat code for
> > the various 64-bit architectures of Linux (in particular sparc64 and ia64),
> > it's a single huge cut'n'paste session. Not much of that code is actually
> > architecture dependant.
>
> That would be even better, but unfortunately a lot of the structures used in
> the compat code is not exactly the same across architectures :-(
> But it should be possible to merges a lot this stuff into a generic
> (architecture independent) set of functions.
True. The basic plan would be to provide the structure definitions and
some architecture dependencies from headers and keep the generic compat
code in a linux-32 directory.
The syscalls are still fairly harmless - the true pain are all the ioctls
that keep growing and changing like weed ...
Ralf
|