On 09/12/2012 04:43 PM, Benjamin Herrenschmidt wrote:
On Wed, 2012-09-12 at 16:38 +0800, tiejun.chen wrote:
So you need to store that old r1 somewhere fist then retrieve it
after the memcpy call. That or open-code the memcpy to avoid all
the clobbering problems.

Maybe we can use copy_and_flush() since looks copy_and_flush() only
clobber r0,
r6 and LR explicitly.

I'll resync these comments for v4.

I'd say just open code it. You already have src and dst in registers,
the length can easily be put in ctr... easier that way, not clobbering

ctr should be easier :)

to worry about nor stack frame to create etc...

If you don't like this v4, let me know and then I can go back memcpy for next version.

Tiejun
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to