summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-03-14 19:54:47 +0100
committerRichard Braun <rbraun@sceen.net>2017-03-14 19:54:47 +0100
commit77058e37bf93d77ab3b9790428c1cad2b4a5cc49 (patch)
treeb2b79cb4e660d6993ecb05619cf0360d2d9d83b5 /kern/thread.c
parent3578ec83e47c757dc69af2f2876bba5218b38d68 (diff)
kern/thread: set a name for boot thread contexts
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 81f6594a..42f0297d 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -1702,6 +1702,8 @@ thread_bootstrap_common(unsigned int cpu)
thread_reset_real_priority(booter);
memset(booter->tsd, 0, sizeof(booter->tsd));
booter->task = kernel_task;
+ snprintf(booter->name, sizeof(booter->name),
+ THREAD_KERNEL_PREFIX "thread_boot/%u", cpu);
thread_runq_init(percpu_ptr(thread_runq, cpu), cpu, booter);
}