Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 pset_create() takes a pointer so it need...



details:   https://anonhg.NetBSD.org/src/rev/d0f7048fddcf
branches:  trunk
changeset: 446899:d0f7048fddcf
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Dec 24 20:27:57 2018 +0000

description:
pset_create() takes a pointer so it needs special handling.

diffstat:

 sys/compat/netbsd32/netbsd32_netbsd.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 7413b807e9f9 -r d0f7048fddcf sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c     Mon Dec 24 20:11:22 2018 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c     Mon Dec 24 20:27:57 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_netbsd.c,v 1.218 2018/08/10 21:44:58 pgoyette Exp $   */
+/*     $NetBSD: netbsd32_netbsd.c,v 1.219 2018/12/24 20:27:57 mrg Exp $        */
 
 /*
  * Copyright (c) 1998, 2001, 2008 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.218 2018/08/10 21:44:58 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.219 2018/12/24 20:27:57 mrg Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ddb.h"
@@ -2796,8 +2796,11 @@
        /* {
                syscallarg(netbsd32_psetidp_t) psid;
        }; */
-
-       return sys_pset_create(l, (const void *)uap, retval);
+       struct sys_pset_create_args ua;
+
+       NETBSD32TOP_UAP(psid, psetid_t);
+
+       return sys_pset_create(l, &ua, retval);
 }
 
 int



Home | Main Index | Thread Index | Old Index