summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-05-02 05:19:39 +0200
committerRichard Braun <rbraun@sceen.net>2014-05-02 05:19:39 +0200
commitab9c2625a7c03457a3534075936240ee94cc7170 (patch)
tree30c709838b86ff8b2779130321f200d8e2e26943 /kern/thread.c
parent14d73afebf4d4d231868bf2c6d56105dc824bee3 (diff)
kern/thread: initialized booter threads TSD
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kern/thread.c b/kern/thread.c
index c1f1b02a..b02b86ed 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -1341,6 +1341,7 @@ thread_bootstrap_common(unsigned int cpu)
booter->preempt = 1;
booter->sched_class = THREAD_SCHED_CLASS_IDLE;
cpumap_fill(&booter->cpumap);
+ memset(booter->tsd, 0, sizeof(booter->tsd));
booter->task = kernel_task;
thread_runq_init(&thread_runqs[cpu], booter);
}