lkml.org 
[lkml]   [1997]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: IBCS module fails to compile on 2.1.35
On Mon, 28 Apr 1997, David Williams wrote:

>
> I am trying to compile the latest IBCS module under a 2.1.35 kernel.

iBCS doesn't, yet, build under *any* 2.1.x kernel. The primary
target is the current production kernel (I *refuse* to refer to
it as the stable kernel. Sorry.).

> It appears that (from mod_use_count_) is not defined in the 2.1.35
> kernel source. Since I have to get modutils.2.1.34 and this module
> compiled ok under 2.0.30 I assume the interface to modules has
> changed. I'd like to port the IBCS module myself for personal use
> - I have ?4 years good C experience and should have no trouble if
> I can just understand what has changed in the kernel since 2.0.30
> regarding modules.

Have you tried reading the patches? A *lot* has changed in the
2.1.x series. At the very least you want to change references
to segment.h to uaccess.h, change {get,put}_fs_* to use {get,put}_user,
you may need to change the verify_area checks or trap the returns
from {get,put}_user (but if you want it *right* you should be
careful to get the checks in the same order as SYSV :-) ). If you
need it to run on SMP you might have to look at doing some locking
too. The changes to the user/kernel memory division would also
allow (and may even require) you to clean up some of the bits
where we used to steal some space off the user stack as scratch
space...

It's difficult to do all this right and not end up with distinct
2.0 and 2.1 iBCS source trees though :-).

Mike

--
.----------------------------------------------------------------------.
| Mike Jagdis | Internet: mailto:mike@roan.co.uk |
| Roan Technology Ltd. | |
| 54A Peach Street, Wokingham | Telephone: +44 118 989 0403 |
| RG40 1XG, ENGLAND | Fax: +44 118 989 1195 |
`----------------------------------------------------------------------'


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