Subject: Re: Do LKMs work *at*all* on powerpc platforms?
To: Todd Vierling <tv@wasabisystems.com>
From: Bill Studenmund <wrstuden@zembu.com>
List: port-macppc
Date: 08/14/2000 18:58:59
On Mon, 14 Aug 2000, Todd Vierling wrote:

> On Mon, 14 Aug 2000, Bill Studenmund wrote:
> 
> : > Hiding the -mlong-call (which doesn't work in the cc we're currently
> : > using right now, remember) withing -D_LKM somehow will just lead to
> : > people forgetting it's even necessary to do __attribute__
> : > ((shortcall)) (which they can't anyhow with the cc we've got), and
> : > make their code inexplicably slow.
> : 
> : I don't think that not using short-call will make the calls inexplicably
> : slow, it will just make the calls slower than they might be. :-)
> 
> The correct way to do this is to use -mlong-call when compiling...
> 
> ...period.

Ok, how do we get this to happen? :-) I don't know gcc enough to make this
work.

It looks like there are two open issues. 1) getting -mlong-call working,
and 2) getting it to work for built-ins (mainly memcpy).

:-)

Take care,

Bill