svn commit: r312703 - head/lib/libc/aarch64/sys

Andrew Turner andrew at FreeBSD.org
Tue Jan 24 18:56:11 UTC 2017


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


More information about the svn-src-all mailing list