SV: New invalidate/clean/flush_dcache functions

Joakim Tjernlund joakim.tjernlund at lumentis.se
Tue Dec 24 21:36:15 EST 2002


> Joakim Tjernlund wrote:
> >
> > How about adding new xxx_dcache_range() functions functions to PPC.
> > Below is my suggestion which is more logical and more efficient:
>
> These aren't any different from what we have, other than you give it
> a length instead of an ending address.  Someone has to do that
> arithmetic anyway, and you chose to do it inside of your new functions
> when a caller may already have it available.

I choose to let gcc do the arithmetic(and it's easier to understand for
A non assembler guy). Check the assembler output included last in my
mail.

> We also try to keep these
> functions common across multiple architectures, which is especially
> important to embedded systems that may share common devices connected
> to the processor bus.

OK, what are the other arch's that have these functions?

Merry X-mas
            Jocke

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list