dc* (Data Cache) instructions in mem*() and *_page() functions not used on 8xx
dan at embeddededge.com
Mon Nov 4 13:09:16 EST 2002
Joakim Tjernlund wrote:
> I don't follow you here, do you need to do all this for a modern(>=D4) 8xx CPU?
Yes. On "working" silicon, the dcbz (among others) requires special
processing.....probably enough to ensure it costs more to use this
instruction in a general purpose case.
> I hope not, but something needs to be done since copytofrom_user does not
> work for me.
What do you mean it doesn't work? It should work fine if you don't
try to use the dcbz. That is, leave the code alone. The bigger problem
is the newer glibc library has to be modified to conditionally not use
this as well.
> The same resoning goes for the new option. If you have a new enough(>=D4) CPU,
> then you can enable this optimization(I think?!).
I don't know. Linux is the only OS that will cause VM faults on a dcbz,
maybe it will never work. Until someone verifies it works on the newer
silicon we can't assume it will. This certainly isn't a reason to not use
the processor or not ship products.......
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded