From 5dfa7ee632d0c80c07c607c80c1c64c54e21d713 Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 6 Aug 2003 00:23:40 +0000 Subject: Fix an off by one error in the number of arguments passed to makecontext(). We only supply 3, not 4. This is mostly harmless, except that on ia64 the garbage can include NaT bits, resulting in NaT consumption faults. --- lib/libkse/thread/thr_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libkse/thread/thr_create.c') diff --git a/lib/libkse/thread/thr_create.c b/lib/libkse/thread/thr_create.c index fcc4ac5..c73a3da 100644 --- a/lib/libkse/thread/thr_create.c +++ b/lib/libkse/thread/thr_create.c @@ -193,7 +193,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, new_thread->tcb->tcb_tmbx.tm_context.uc_stack.ss_sp = new_thread->attr.stackaddr_attr; makecontext(&new_thread->tcb->tcb_tmbx.tm_context, - (void (*)(void))thread_start, 4, new_thread, + (void (*)(void))thread_start, 3, new_thread, start_routine, arg); /* * Check if this thread is to inherit the scheduling -- cgit v1.1