svn commit: r306455 - head/sys/arm/arm
Andrew Turner
andrew at FreeBSD.org
Thu Sep 29 17:13:18 UTC 2016
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 at 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;
}
More information about the svn-src-all
mailing list