This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [patch] libffi EABI sys_cacheflush
- From: Steven Newbury <s_j_newbury at yahoo dot co dot uk>
- To: David Daney <ddaney at avtrex dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Sat, 4 Aug 2007 22:49:11 +0100 (BST)
- Subject: 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