svn commit: r295966 - head/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Wed Feb 24 11:58:16 UTC 2016


Author: kib
Date: Wed Feb 24 11:58:15 2016
New Revision: 295966
URL: https://svnweb.freebsd.org/changeset/base/295966

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

Modified:
  head/sys/amd64/amd64/support.S

Modified: head/sys/amd64/amd64/support.S
==============================================================================
--- head/sys/amd64/amd64/support.S	Wed Feb 24 10:54:26 2016	(r295965)
+++ head/sys/amd64/amd64/support.S	Wed Feb 24 11:58:15 2016	(r295966)
@@ -151,6 +151,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