This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] libffi EABI sys_cacheflush


*David: Sorry for sending this twice, I missed off the list first time*

--- David Daney <ddaney@avtrex.com> wrote:

> Steven Newbury wrote:
> > The existing code in FFI_INIT_TRAMPOLINE calls sys_cacheflush using only
> the
> > OABI syscall interface ie. the syscall number is encoded in the swi
> > instruction.
> >
> > This patch passes the syscall number in r7 and calls "swi 0" as is needed
> by
> > the EABI Linux syscall ABI.
> >
> > 2007-08-03  Steven Newbury  <s_j_newbury@yahoo.co.uk>
> >
> > 	* src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use EABI syscall ABI for 
> >           sys_cacheflush.
> >   
> An alternative would be to call the __clear_cache() function provided by 
> libgcc, or even better implement __builtin___clear_cache for arm and use 
> that.
> 
I take it __clear_cache() is available with an OABI libgcc?  I see that indeed
my EABI libgcc does do exactly the same as my patch.  Is it worth the function
call?  It does look nicer I suppose! :)

Steve


      ___________________________________________________________ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]