Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/compat/netbsd32 Pull up the following revisions, requ...
details: https://anonhg.NetBSD.org/src/rev/9f71ad899079
branches: netbsd-7
changeset: 799338:9f71ad899079
user: martin <martin%NetBSD.org@localhost>
date: Sat May 16 14:15:50 2015 +0000
description:
Pull up the following revisions, requested by matt in ticket #776:
src/sys/compat/netbsd32/netbsd32_lwp.c 1.15-1.18
Fix _lwp_ctl for big endian 64-bit platforms. (Little-endian too but not
as noticable).
diffstat:
sys/compat/netbsd32/netbsd32_lwp.c | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r 55a6fe5111de -r 9f71ad899079 sys/compat/netbsd32/netbsd32_lwp.c
--- a/sys/compat/netbsd32/netbsd32_lwp.c Sat May 16 04:40:31 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_lwp.c Sat May 16 14:15:50 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_lwp.c,v 1.15 2013/03/29 01:04:30 christos Exp $ */
+/* $NetBSD: netbsd32_lwp.c,v 1.15.10.1 2015/05/16 14:15:50 martin Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 The NetBSD Foundation.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_lwp.c,v 1.15 2013/03/29 01:04:30 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_lwp.c,v 1.15.10.1 2015/05/16 14:15:50 martin Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -280,9 +280,16 @@
syscallarg(int) features;
syscallarg(netbsd32_pointer_t) address;
} */
- struct sys__lwp_ctl_args ua;
+ netbsd32_pointer_t vaddr32;
+ int error, features;
+ vaddr_t vaddr;
- NETBSD32TO64_UAP(features);
- NETBSD32TOP_UAP(address, struct lwpctl *);
- return sys__lwp_ctl(l, &ua, retval);
+ features = SCARG(uap, features);
+ features &= ~(LWPCTL_FEATURE_CURCPU | LWPCTL_FEATURE_PCTR);
+ if (features != 0)
+ return ENODEV;
+ if ((error = lwp_ctl_alloc(&vaddr)) != 0)
+ return error;
+ NETBSD32PTR32(vaddr32, (void *)vaddr);
+ return copyout(&vaddr32, SCARG_P32(uap, address), sizeof(vaddr32));
}
Home |
Main Index |
Thread Index |
Old Index