Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2016 11:58:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295966 - head/sys/amd64/amd64
Message-ID:  <201602241158.u1OBwFNq096058@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602241158.u1OBwFNq096058>