Module Name:    src
Committed By:   yamt
Date:           Sat Feb  5 13:46:44 UTC 2011

Modified Files:
        src/sys/compat/netbsd32: netbsd32_lwp.c

Log Message:
netbsd32__lwp_create: add a comment and CTASSERT.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/compat/netbsd32/netbsd32_lwp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/netbsd32/netbsd32_lwp.c
diff -u src/sys/compat/netbsd32/netbsd32_lwp.c:1.11 src/sys/compat/netbsd32/netbsd32_lwp.c:1.12
--- src/sys/compat/netbsd32/netbsd32_lwp.c:1.11	Sun Jan 11 02:45:49 2009
+++ src/sys/compat/netbsd32/netbsd32_lwp.c	Sat Feb  5 13:46:44 2011
@@ -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);
 

Reply via email to