svn commit: r296562 - stable/10/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Wed Mar 9 10:21:15 UTC 2016


Author: kib
Date: Wed Mar  9 10:21:13 2016
New Revision: 296562
URL: https://svnweb.freebsd.org/changeset/base/296562

Log:
  MFC r295966:
  Return dst as the result from memcpy(9) on amd64.
  
  PR:	207422

Modified:
  stable/10/sys/amd64/amd64/support.S
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/amd64/amd64/support.S
==============================================================================
--- stable/10/sys/amd64/amd64/support.S	Wed Mar  9 10:19:32 2016	(r296561)
+++ stable/10/sys/amd64/amd64/support.S	Wed Mar  9 10:21:13 2016	(r296562)
@@ -152,6 +152,7 @@ END(bcopy)
  */
 ENTRY(memcpy)
 	PUSH_FRAME_POINTER
+	movq	%rdi,%rax
 	movq	%rdx,%rcx
 	shrq	$3,%rcx				/* copy by 64-bit words */
 	cld					/* copy forwards */


More information about the svn-src-all mailing list