[v3][PATCH 2/3] ppc/kprobe: complete kprobe and migrate exception frame
tiejun.chen
tiejun.chen at windriver.com
Wed Sep 12 18:55:10 EST 2012
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
More information about the Linuxppc-dev
mailing list