Subject: Re: Do LKMs work *at*all* on powerpc platforms?
To: Greg Kritsch <greg@evertz.com>
From: gabriel rosenkoetter <gr@eclipsed.net>
List: port-macppc
Date: 08/02/2000 16:47:47
On Wed, Aug 02, 2000 at 03:15:40PM -0400, Greg Kritsch wrote:
> #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 linker won't bitch about conflicting definitions of memcopy in
this kind of whackiness?

Erm. Maybe I'll find out for myself.

Can you suggest exactly what should go in those spaces? Why is (or
just is) the __attribute__ necessary?

Is the modifier for the prototype "far" or "long"?

       ~ g r @ eclipsed.net