Index: generic/include/proc/thread.h
===================================================================
--- generic/include/proc/thread.h	(revision f76fed4ce9ef078664208e11cf713b1e09aa3a72)
+++ generic/include/proc/thread.h	(revision 93165be1285f3a50e69871962061a2e2fcfb9ae6)
@@ -60,5 +60,8 @@
 #define X_STOLEN	(1<<1)
 
+/** Thread structure. There is one per thread. */
 struct thread {
+	char *name;
+	
 	link_t rq_link;				/**< Run queue link. */
 	link_t wq_link;				/**< Wait queue link. */
@@ -126,5 +129,5 @@
 
 extern void thread_init(void);
-extern thread_t *thread_create(void (* func)(void *), void *arg, task_t *task, int flags);
+extern thread_t *thread_create(void (* func)(void *), void *arg, task_t *task, int flags, char *name);
 extern void thread_ready(thread_t *t);
 extern void thread_exit(void);
