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 11:57:05
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 think adding -mlong-call would be better.

Take care,

Bill