Subject: RE: Do LKMs work *at*all* on powerpc platforms?
To: 'Bill Studenmund' <greg@evertz.com>
From: Greg Kritsch <greg@evertz.com>
List: port-macppc
Date: 08/08/2000 10:38:44
> On Wed, 2 Aug 2000, Greg Kritsch wrote:
> 
> > Fine, make me actually look up what I did... It's covered 
> in the GCC manual,
> > or at least it is in the EGCS-2.95.2 version thereof.
> > 
> > #define LONGCALL __attribute__ ((longcall))
> > 
> > void flash_ident_acc(void) LONGCALL;
> 
> Actually, could we have a shortcall attribute? We could 
> compile lkm's with
> -mlong-call, and then define all of the lkm-internal calls as
> __attribute__ ((shortcall)).

Six of one, half dozen of another.

Actually, I have slightly greater confidence in NetBSD getting it "right" in
the kernel header files than arbitrary developer X remembering to do that to
his LKM.  My confidence goes way down when we're depending on someone
developing on a port that doesn't need this trick.  Though I suppose the
only impact is poor performance of the LKM in that case.  Also, there's the
fact that the short call attribute doesn't seem to exist.

You'll have to pardon my performance driven real time background.

> :-)
> 
> Take care,
> 
> Bill

Gregory

(Oh, if MS Outlook is doing weird stuff to my emails, I apologise as well).