From df47f83ed98e4ce356af8d34de05b549f4f9c912 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sat, 1 Feb 2014 02:15:05 +0100 Subject: kern: add a name field to struct task * kern/task.c (task_create): Initialize name with the address of the task. * kern/task.h (TASK_NAME_SIZE): New definition. (struct task): Add field name. --- kern/task.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kern/task.c') diff --git a/kern/task.c b/kern/task.c index 13b3c761..0b5a6f7f 100644 --- a/kern/task.c +++ b/kern/task.c @@ -45,6 +45,7 @@ #include #include #include +#include #include /* for thread_wakeup */ #include #include @@ -164,6 +165,8 @@ kern_return_t task_create( } #endif /* FAST_TAS */ + snprintf (new_task->name, sizeof new_task->name, "%p", new_task); + ipc_task_enable(new_task); *child_task = new_task; -- cgit v1.2.3