Subject: Re: LKM Module Template for 1.6.2
To: Sam Thigpen <sthigpen@sdf.lonestar.org>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-kern
Date: 03/04/2004 10:56:41
Sam Thigpen wrote:
> trap.h for -current and 1.6.2 just contains:
> ---
> /*      $NetBSD: trap.h,v 1.7 2003/02/26 21:29:03 fvdl Exp $    */
> 
> #include <x86/trap.h>
> ---

The one for 1.6.2 is:

/*      $NetBSD: trap.h,v 1.4 1994/10/27 04:16:30 cgd Exp $     */

and is result of cvs co/up -r netbsd-1-6. What you pasted is -current
include. I believe you need up-to-date toolchain to be able
to compile -current kernels. LKMs for 1.6.2 should compile
just fine on 1.6.2 of course, once you'd use correct source tree.

Jaromir
 
> pretty much the same for the other includes listed in the error above.
> 
> Right now I am just using the old include files to create lkm modules.
> They seem to work ok on the newer kernels (-current, 1.6.2) for basic
> tests.
> 
> Is anyone doing a template or have lkm examples with the new source
> hierarchy?
> 
> Thanks,
> Sam.
> 
> ------------------------------------------------------
> SA Thigpen  *  KL1FE  *  http://sthigpen.freeshell.org
> ------------------------------------------------------
> 

-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you        -=-
-=- sometimes levitate or glow.   Do not let this distract you.''   -=-