Date: Tue, 24 Jan 2017 18:56:09 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r312703 - head/lib/libc/aarch64/sys Message-ID: <201701241856.v0OIu9ZT063914@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Tue Jan 24 18:56:09 2017 New Revision: 312703 URL: https://svnweb.freebsd.org/changeset/base/312703 Log: Fix the error value we write in cerror. __error returns an int *, however we were writing a 64 bit value meaning the 32 bits after this would be trashed. MFC after: 3 days Sponsored by: DARPA, AFRL Modified: head/lib/libc/aarch64/sys/cerror.S Modified: head/lib/libc/aarch64/sys/cerror.S ============================================================================== --- head/lib/libc/aarch64/sys/cerror.S Tue Jan 24 18:05:29 2017 (r312702) +++ head/lib/libc/aarch64/sys/cerror.S Tue Jan 24 18:56:09 2017 (r312703) @@ -34,7 +34,7 @@ ENTRY(cerror) stp x0, lr, [sp] bl _C_LABEL(__error) ldp x1, lr, [sp] - str x1, [x0] + str w1, [x0] movn x0, #0 movn x1, #0 add sp, sp, #16
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701241856.v0OIu9ZT063914>