From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Holler Date: Mon, 23 May 2011 11:51:30 +0200 Subject: [U-Boot] [PATCH] arm: lib: memcpy: Do not copy to same address In-Reply-To: <4DDA2CFC.3070509@arcor.de> References: <1306141610-24117-1-git-send-email-weisserm@arcor.de> <4DDA292C.2040602@ahsoftware.de> <4DDA2CFC.3070509@arcor.de> Message-ID: <4DDA2E22.6010607@ahsoftware.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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