Re: PPC64 mlongcall gcc flag

2008-11-06 Thread Manoel
Humm..we should do something to prevent memory to be allocated above 32mb (actually things can be above 32mb...but they cant be at a large offset since the PowerPC branch instruction works with offsets not absolute address). The thing is I was able to load the modules in P6 by changing the link

Re: PPC64 mlongcall gcc flag

2008-11-06 Thread Robert Millan
On Wed, Nov 05, 2008 at 11:25:15AM -0600, Hollis Blanchard wrote: > > Module memory is allocated by grub_malloc(), but as you can see at > http://svn.savannah.gnu.org/viewvc/trunk/grub2/kern/ieee1275/init.c?revision=1806&root=grub&view=markup > the GRUB heap capped at 4MB (I don't mean size, I me

Re: PPC64 mlongcall gcc flag

2008-11-05 Thread Manoel
On Wed, 2008-11-05 at 11:25 -0600, Hollis Blanchard wrote: > On Tue, 2008-11-04 at 18:48 -0500, Pavel Roskin wrote: > > > > However, it would be nice to have a better explanation why "-mlongcall" > > is needed. If it's only needed for modules and has significant > > overhead, we may want to intro

Re: PPC64 mlongcall gcc flag

2008-11-05 Thread Hollis Blanchard
On Tue, 2008-11-04 at 18:48 -0500, Pavel Roskin wrote: > > However, it would be nice to have a better explanation why "-mlongcall" > is needed. If it's only needed for modules and has significant > overhead, we may want to introduce MODULE_CFLAGS, which would only be > used for modules. It absol

Re: PPC64 mlongcall gcc flag

2008-11-05 Thread Pavel Roskin
On Wed, 2008-11-05 at 10:43 +0100, Robert Millan wrote: > On Tue, Nov 04, 2008 at 06:48:26PM -0500, Pavel Roskin wrote: > > Index: configure.ac > > === > > --- configure.ac(revision 1893) > > +++ configure.ac(working copy) > >

Re: PPC64 mlongcall gcc flag

2008-11-05 Thread Robert Millan
On Tue, Nov 04, 2008 at 06:48:26PM -0500, Pavel Roskin wrote: > Index: configure.ac > === > --- configure.ac (revision 1893) > +++ configure.ac (working copy) > @@ -291,6 +291,11 @@ >TARGET_CFLAGS="$TARGET_CFLAGS -mal

Re: PPC64 mlongcall gcc flag

2008-11-04 Thread Pavel Roskin
On Tue, 2008-11-04 at 16:18 -0200, Manoel wrote: > I did this patch to add a gcc flag to the modules compilation. Is that > the correct place to put this flag? It's a wrong place. It breaks compilation of i386: cc1: error: unrecognized command line option "-mlongcall" This option should added

Re: PPC64 mlongcall gcc flag

2008-11-04 Thread Robert Millan
On Tue, Nov 04, 2008 at 04:18:05PM -0200, Manoel wrote: > I did this patch to add a gcc flag to the modules compilation. Is that > the correct place to put this flag? > > Also I would like to know what the command "cursor-on" and "cursor-off" > do in OLPC firmware (they dont exist in PowerPC firm

Re: PPC64 mlongcall gcc flag

2008-11-04 Thread Manoel
sorry, forgot the patch. On Tue, 2008-11-04 at 16:18 -0200, Manoel wrote: > I did this patch to add a gcc flag to the modules compilation. Is that > the correct place to put this flag? > > Also I would like to know what the command "cursor-on" and "cursor-off" > do in OLPC firmware (they dont ex