[U-Boot] [PATCH] arm: lib: memcpy: Do not copy to same address

Alexander Holler holler at ahsoftware.de
Mon May 23 11:51:30 CEST 2011


Am 23.05.2011 11:46, schrieb Matthias Weißer:

>> The standard clearly say to both memory regions should not overlap when
>> memcpy() is used, so I would say this is the wrong place to fix that.
>
> Well, real world applications do this. And these two instructions
> shouldn't hurt a lot.

Real bugs to this. Just see e.g the long discussion about some changes 
fo memcpy done in the glibc lately and what that did for flash-users 
because flash seemed to the same stupid stuff.

Regards,

Alexander



More information about the U-Boot mailing list