summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r--lib/libthr/thread/thr_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c
index 6a6fd45..1a0c648 100644
--- a/lib/libthr/thread/thr_init.c
+++ b/lib/libthr/thread/thr_init.c
@@ -219,7 +219,7 @@ _thread_init(void)
PANIC("Cannot allocate memory for initial thread");
}
_thread_initial = pthread;
- pthread->arch_id = _set_curthread(pthread);
+ pthread->arch_id = _set_curthread(NULL, pthread);
/* Zero the initial thread structure: */
memset(pthread, 0, sizeof(struct pthread));
OpenPOWER on IntegriCloud