git: kernel - Fix memcpy assembly ABI

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Aug 6 21:27:05 PDT 2016


commit 74857ad3db8fb4082c9162fe8e6e159371132cac
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Aug 6 21:25:26 2016 -0700

    kernel - Fix memcpy assembly ABI
    
    * memcpy must return the original (dst) argument, and wasn't for the kernel.
      Nothing used it explicitly, but gcc sometimes decides to call memcpy and
      assumes the correct return value.  It was just luck that it hasn't up until
      now.

Summary of changes:
 sys/platform/pc64/x86_64/support.s | 4 ++++
 1 file changed, 4 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/74857ad3db8fb4082c9162fe8e6e159371132cac


-- 
DragonFly BSD source repository


More information about the Commits mailing list