Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 In lwp_ctl, convert ptr to 32 bits befor...
details: https://anonhg.NetBSD.org/src/rev/82d167b740b7
branches: trunk
changeset: 338219:82d167b740b7
user: matt <matt%NetBSD.org@localhost>
date: Fri May 15 07:52:51 2015 +0000
description:
In lwp_ctl, convert ptr to 32 bits before copyout.
diffstat:
sys/compat/netbsd32/netbsd32_lwp.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r f53019bf226f -r 82d167b740b7 sys/compat/netbsd32/netbsd32_lwp.c
--- a/sys/compat/netbsd32/netbsd32_lwp.c Fri May 15 07:45:15 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_lwp.c Fri May 15 07:52:51 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_lwp.c,v 1.16 2015/05/15 07:45:15 matt Exp $ */
+/* $NetBSD: netbsd32_lwp.c,v 1.17 2015/05/15 07:52:51 matt 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.16 2015/05/15 07:45:15 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_lwp.c,v 1.17 2015/05/15 07:52:51 matt Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -280,6 +280,7 @@
syscallarg(int) features;
syscallarg(netbsd32_pointer_t) address;
} */
+ netbsd32_pointer_t vaddr32;
int error, features;
vaddr_t vaddr;
@@ -289,6 +290,7 @@
return ENODEV;
if ((error = lwp_ctl_alloc(&vaddr)) != 0)
return error;
- return copyout(&vaddr, SCARG_P32(uap, address),
+ NETBSD32PTR32(vaddr32, (void *)vaddr);
+ return copyout(&vaddr32, SCARG_P32(uap, address),
sizeof(netbsd32_pointer_t));
}
Home |
Main Index |
Thread Index |
Old Index