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__lwp_create: add a comment and ...



details:   https://anonhg.NetBSD.org/src/rev/baf4ad7970d4
branches:  trunk
changeset: 761689:baf4ad7970d4
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Feb 05 13:46:44 2011 +0000

description:
netbsd32__lwp_create: add a comment and CTASSERT.

diffstat:

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

diffs (28 lines):

diff -r 39c19a64944d -r baf4ad7970d4 sys/compat/netbsd32/netbsd32_lwp.c
--- a/sys/compat/netbsd32/netbsd32_lwp.c        Sat Feb 05 13:35:11 2011 +0000
+++ b/sys/compat/netbsd32/netbsd32_lwp.c        Sat Feb 05 13:46:44 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_lwp.c,v 1.11 2009/01/11 02:45:49 christos Exp $       */
+/*     $NetBSD: netbsd32_lwp.c,v 1.12 2011/02/05 13:46:44 yamt 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.11 2009/01/11 02:45:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_lwp.c,v 1.12 2011/02/05 13:46:44 yamt Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -55,7 +55,8 @@
        } */
        struct sys__lwp_create_args ua;
 
-       NETBSD32TOP_UAP(ucp, const ucontext_t);
+       CTASSERT(sizeof(ucontext32_t) <= sizeof(ucontext_t));
+       NETBSD32TOP_UAP(ucp, const ucontext_t); /* see startlwp32() */
        NETBSD32TO64_UAP(flags);
        NETBSD32TOP_UAP(new_lwp, lwpid_t);
 



Home | Main Index | Thread Index | Old Index