lkml.org 
[lkml]   [1996]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: DOSEMU hacker tool support and the modules package
Date
In article <m0tyTaF-000AhyC@lix.blox.se> bj0rn@blox.se (Bjorn Ekwall) writes:
> Brian R. Doherty <doherty@rice.edu> wrote:
> > Just out of curiosity: Why haven't the special DOSEMU features (i.e. the
> > resolution of symbols from /System.map) been rolled into the standard
> > modules distribution? It seems like a pretty handy feature.
>
> The "standard" answer (and it's rather good as well :-) ) is that if
> a module was allowed to use _any_ kernel symbol instead of the
> officially exported ones, we would all risk that a "popular" module
> might lock on to an internal symbol that is too low-level.
>
> This would lock the kernel development, since all modifications to the
> rest of the code would then have to be sub-optimally adapted in order
> to "preserve" this symbol.
>
> The set of officially exported symbols might not be perfect right now,
> but it is at least an attempt at an official kernel interface.

I share Bjorn's point of view, that we do not want modules to be able
to access arbitrary symbols. Fortunately, this does not seem to be
neccessary anyways; the way I understand it, dosemu's module is just a
convenience for the developers. It is expected, that emumod.o will
eventually become an official part of the kernel, when the code has
become more stable. Until then, some work-around is neccessary to load
these routines as a module. The dosemu developers chose to use a
modified version of insmod to get this work-around done, but there is
nothing that keeps you from using Bjorn's official module package. All
you need do, is add the missing symbols to linux/kernel/ksyms.c. I
prefer this approach, as it results in the least interference with
other parts of the system. Of course, we need to bear in mind, that
this is still a temporary work-around, that should *not* be part of
the official kernel distribution. Rather, it should probably be
distributed as a patch-file that is part of the dosemu
source-tree. Still, there is justification for the use of a modified
modules package, as it allows users that do not want (or know how) to
patch their kernel to still use dosemu at its current intermediate
state.

As a convenice, I include the patches that allowed me to use dosemu
with Bjorn's unmodified module package. Feel free, to do with this
file whatever you want, as long as you do not submit it to Linus for
inclusion into the mainstream kernel or to Bjorn for inclusion into
his module package :-) Actually, Bjorn might want to add this
information to his WWW page?
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.538 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site