Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 +netbsd32__sched_protect



details:   https://anonhg.NetBSD.org/src/rev/d344f92c8611
branches:  trunk
changeset: 347660:d344f92c8611
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Sep 10 08:20:49 2016 +0000

description:
+netbsd32__sched_protect

diffstat:

 sys/compat/netbsd32/netbsd32_netbsd.c |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r e7663b7d2578 -r d344f92c8611 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c     Sat Sep 10 08:19:58 2016 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c     Sat Sep 10 08:20:49 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_netbsd.c,v 1.200 2016/05/13 16:54:36 christos Exp $   */
+/*     $NetBSD: netbsd32_netbsd.c,v 1.201 2016/09/10 08:20:49 skrll 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.200 2016/05/13 16:54:36 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.201 2016/09/10 08:20:49 skrll Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ddb.h"
@@ -2714,6 +2714,20 @@
 }
 
 int
+netbsd32__sched_protect(struct lwp *l,
+                       const struct netbsd32__sched_protect_args *uap,
+                       register_t *retval)
+{
+       /* {
+               syscallarg(int) priority;
+       } */
+       struct sys__sched_protect_args ua;
+
+       NETBSD32TO64_UAP(priority);
+       return sys__sched_protect(l, &ua, retval);
+}
+
+int
 netbsd32_pipe2(struct lwp *l, const struct netbsd32_pipe2_args *uap,
               register_t *retval)
 {



Home | Main Index | Thread Index | Old Index