Subject: RE: Do LKMs work *at*all* on powerpc platforms?
To: Greg Kritsch <greg@evertz.com>
From: Bill Studenmund <wrstuden@zembu.com>
List: port-macppc
Date: 08/07/2000 13:35:53
On Mon, 7 Aug 2000, Bill Studenmund wrote:

> On Wed, 2 Aug 2000, Greg Kritsch wrote:
> 
> > I believe the solution is to do something like the following:
> > 
> > #ifdef COMPILING_AN_LKM
> > #ifdef powerpc
> > #ifdef __GNUC__
> > #define LKMATTR   __attribute__ ((far))
> > #else
> > #error don't know how to force far calls
> > #endif /* __GNUC__ */
> > #endif /* powerpc */
> > #else
> > #define LKMATTR   
> > #endif
> > 
> > int LKMATTR memcpy __P(...);
> 
> The problem with this solution is that ALL the function calls in the
> kernel would need these changes. :-(

I mis-spoke a little. All function call prototypes in the kernel would
need something like this. :-)

Take care,

Bill