[patch] libffi EABI sys_cacheflush
Steven Newbury
s_j_newbury@yahoo.co.uk
Sat Aug 4 21:49:00 GMT 2007
*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
More information about the Java-patches
mailing list