summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_init.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2003-04-22 20:28:33 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2003-04-22 20:28:33 +0000
commit6dee371a559db5d6bce5e827e6addf9b52bd4a0e (patch)
tree19f3d1be5afa27ed30120ee055e1c276564167d9 /lib/libpthread/thread/thr_init.c
parent897ecacd6488f80e815b6be7188c145335a5bcba (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
-rw-r--r--lib/libpthread/thread/thr_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c
index 626a134392f8..804462c4febf 100644
--- a/lib/libpthread/thread/thr_init.c
+++ b/lib/libpthread/thread/thr_init.c
@@ -264,6 +264,9 @@ _libpthread_init(struct pthread *curthread)
PANIC("Can't allocate initial kseg.");
_kse_initial->k_schedq = &_kse_initial->k_kseg->kg_schedq;
+ TAILQ_INSERT_TAIL(&_kse_initial->k_kseg->kg_kseq, _kse_initial, k_kgqe);
+ _kse_initial->k_kseg->kg_ksecount = 1;
+
/* Set the initial thread. */
if (curthread == NULL) {
/* Create and initialize the initial thread. */