Author: andrew Date: Thu Sep 29 17:13:17 2016 New Revision: 306455 URL: https://svnweb.freebsd.org/changeset/base/306455
Log: Use SV_ABI_ERRNO to set the syscall return value. The Linuxulator will need this. Submitted by: Grégory Soutadé <sout...@gmail.com> Differential Revision: https://reviews.freebsd.org/D7976 Modified: head/sys/arm/arm/vm_machdep.c Modified: head/sys/arm/arm/vm_machdep.c ============================================================================== --- head/sys/arm/arm/vm_machdep.c Thu Sep 29 16:36:32 2016 (r306454) +++ head/sys/arm/arm/vm_machdep.c Thu Sep 29 17:13:17 2016 (r306455) @@ -220,7 +220,7 @@ cpu_set_syscall_retval(struct thread *td /* nothing to do */ break; default: - frame->tf_r0 = error; + frame->tf_r0 = SV_ABI_ERRNO(td->td_proc, error); frame->tf_spsr |= PSR_C; /* carry bit */ break; } _______________________________________________ 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"