Date: Thu, 29 Sep 2016 17:13:17 +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: r306455 - head/sys/arm/arm Message-ID: <201609291713.u8THDHjI098178@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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é <soutade@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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609291713.u8THDHjI098178>