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 */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to