Module Name: src
Committed By: joerg
Date: Thu Jun 25 13:38:43 UTC 2009
Modified Files:
src/lib/libpthread: pthread.c
Log Message:
Partially revert 1.110: Use makecontext again until the problems with
_lwp_makecontext are solved.
To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/lib/libpthread/pthread.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpthread/pthread.c
diff -u src/lib/libpthread/pthread.c:1.110 src/lib/libpthread/pthread.c:1.111
--- src/lib/libpthread/pthread.c:1.110 Sun May 17 14:49:00 2009
+++ src/lib/libpthread/pthread.c Thu Jun 25 13:38:43 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread.c,v 1.110 2009/05/17 14:49:00 ad Exp $ */
+/* $NetBSD: pthread.c,v 1.111 2009/06/25 13:38:43 joerg Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread.c,v 1.110 2009/05/17 14:49:00 ad Exp $");
+__RCSID("$NetBSD: pthread.c,v 1.111 2009/06/25 13:38:43 joerg Exp $");
#define __EXPOSE_STACK 1
@@ -408,9 +408,14 @@
pthread__scrubthread(newthread, name, nattr.pta_flags);
newthread->pt_func = startfunc;
newthread->pt_arg = arg;
+#if 0
_lwp_makecontext(&newthread->pt_uc, pthread__create_tramp,
newthread, newthread, newthread->pt_stack.ss_sp,
newthread->pt_stack.ss_size);
+#else
+ makecontext(&newthread->pt_uc, pthread__create_tramp, 1,
+ newthread);
+#endif
flag = LWP_DETACHED;
if ((newthread->pt_flags & PT_FLAG_SUSPENDED) != 0 ||