Subject: Re: more lkm fun
To: David Bushong <dbushong@cory.EECS.Berkeley.EDU>
From: Paul Goyette <paul@pgoyette.bdt.com>
List: port-mac68k
Date: 03/13/1997 05:09:30
You need to add 
  #include <machine/bus.h>
into each of the source files.

Also, you'll need to make sure you've changed all the video_lkm sources to
use NUBUS_SLOT2PA instead NUBUS_SLOTTOPADDR since this, too, changed
recently.
 
On Thu, 13 Mar 1997, David Bushong wrote:

> 
> OK, so I compiled my own recent kernel, fired up modload on the color
> video lkm and got a thrilling:
> 
> modload: Can't reserve memory: Operation not permitted.
> 
> Or something to that effect.  So i figured the lkm was out of sync with my
> kernel.  I used Mar 8 -current tarballs to build the kernel and restock my
> /usr/{include{,machine,m68k,sys}}.  Then doing make on the lkm produced:
> 
> cc -pipe -D_KERNEL -D_LKM -I/sys -I/sys/arch -Werror -Wno-uninitialized
> -c video_lkm.c
> In file included from video_lkm.c:25:
> /sys/arch/mac68k/dev/nubus.h:230: syntax error before `bus_space_tag_t'
> *** Error code 1
> 
> Stop.
> cc -pipe -D_KERNEL -D_LKM -I/sys -I/sys/arch -Werror -Wno-uninitialized
> -c video_lkm.c
> In file included from video_lkm.c:25:
> /sys/arch/mac68k/dev/nubus.h:230: syntax error before `bus_space_tag_t'
> *** Error code 1
> 
> Stop.
> 
> I triple checked nubus.h and can't figure out what the hell's wrong for
> the life of me.. any guesses?
> 
>     _/_/_/_/  _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
>      _/   _/ _/   _/ _/   _/  David P. Bushong -- (510) 845-3271         _/
>     _/   _/ _/_/_/  _/_/_/   dbushong@cory.eecs.berkeley.edu            _/
>    _/   _/ _/      _/   _/  http://www-inst.eecs.berkeley.edu/~dbushong_/
> _/_/_/_/_/_/      _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> 
> 

------------------------------------------------------------------------------
| Paul Goyette       | PGP Public Key fingerprint:  | E-mail addresses:      |
| Network Consultant |     0E 40 D2 FC 2A 13 74 A0  |  paul@pgoyette.bdt.com |
| and kernel hacker  |     E4 69 D5 BE 65 E4 56 C6  |  paul_goyette@ins.com  |
------------------------------------------------------------------------------