Index: test/fpu/fpu1/test.c
===================================================================
--- test/fpu/fpu1/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/fpu/fpu1/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -144,5 +144,4 @@
 }
 
-
 void test(void)
 {
@@ -156,8 +155,8 @@
 
 	for (i=0; i<THREADS/2; i++) {  
-		if (!(t = thread_create(e, NULL, TASK, 0)))
+		if (!(t = thread_create(e, NULL, TASK, 0, "e")))
 			panic("could not create thread\n");
 		thread_ready(t);
-		if (!(t = thread_create(pi, NULL, TASK, 0)))
+		if (!(t = thread_create(pi, NULL, TASK, 0, "pi")))
 			panic("could not create thread\n");
 		thread_ready(t);
@@ -173,42 +172,2 @@
 	printf("Test passed.\n");
 }
-
-/*
-static void pi(void *data)
-{
-#undef PI_10e8	
-#define PI_10e8	3141592
-
-
-	int i;
-	double lpi, pi;
-	double n, ab, ad;
-
-
-	printf("pi test\n");
-
-	waitq_sleep(&can_start);
-
-
-	for (i = 0; i<ATTEMPTS; i++) {
-		lpi = -1;
-		pi = 0;
-
-		for (n=2, ab = sqrt(2); lpi != pi; n *= 2, ab = ad) {
-			double sc, cd;
-
-			sc = sqrt(1 - (ab*ab/4));
-			cd = 1 - sc;
-			ad = sqrt(ab*ab/4 + cd*cd);
-			lpi = pi;
-			pi = 2 * n * ad;
-		}
-
-		atomic_inc(&threads_ok);
-		if((int)(1000000*pi)!=PI_10e8)
-			panic("tid%d: pi*10e6=%d\n", THREAD->tid, (int) 1000000*pi);
-	}
-
-	printf("tid%d: pi*10e6=%d\n", THREAD->tid, (int) 1000000*pi);
-}
-*/
Index: test/fpu/mips1/test.c
===================================================================
--- test/fpu/mips1/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/fpu/mips1/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -113,8 +113,8 @@
 
 	for (i=0; i<THREADS/2; i++) {  
-		if (!(t = thread_create(testit1, (void *)((__native)i*2), TASK, 0)))
+		if (!(t = thread_create(testit1, (void *)((__native)i*2), TASK, 0, "testit1")))
 			panic("could not create thread\n");
 		thread_ready(t);
-		if (!(t = thread_create(testit2, (void *)((__native)i*2+1), TASK, 0)))
+		if (!(t = thread_create(testit2, (void *)((__native)i*2+1), TASK, 0, "testit2")))
 			panic("could not create thread\n");
 		thread_ready(t);
Index: test/fpu/sse1/test.c
===================================================================
--- test/fpu/sse1/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/fpu/sse1/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -113,8 +113,8 @@
 
 	for (i=0; i<THREADS/2; i++) {  
-		if (!(t = thread_create(testit1, (void *)((__native)i*2), TASK, 0)))
+		if (!(t = thread_create(testit1, (void *)((__native)i*2), TASK, 0, "testit1")))
 			panic("could not create thread\n");
 		thread_ready(t);
-		if (!(t = thread_create(testit2, (void *)((__native)i*2+1), TASK, 0)))
+		if (!(t = thread_create(testit2, (void *)((__native)i*2+1), TASK, 0, "testit2")))
 			panic("could not create thread\n");
 		thread_ready(t);
Index: test/mm/falloc2/test.c
===================================================================
--- test/mm/falloc2/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/mm/falloc2/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -45,10 +45,10 @@
 #define THREADS 8
 
-static void thread(void * arg);
+static void falloc(void * arg);
 static void failed(void);
 
 static atomic_t thread_count;
 
-void thread(void * arg)
+void falloc(void * arg)
 {
 	int status, order, run, allocated, i;
@@ -108,5 +108,5 @@
 	for (i = 0; i < THREADS; i++) {
 		thread_t * thrd;
-		thrd = thread_create(thread, NULL, TASK, 0);
+		thrd = thread_create(falloc, NULL, TASK, 0, "falloc");
 		if (thrd)
 			thread_ready(thrd);
Index: test/mm/slab1/test.c
===================================================================
--- test/mm/slab1/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/mm/slab1/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -109,5 +109,5 @@
 semaphore_t thr_sem;
 
-static void thread(void *data)
+static void slabtest(void *data)
 {
 	int offs = (int)(__native) data;
@@ -139,5 +139,5 @@
 	semaphore_initialize(&thr_sem,0);
 	for (i=0; i<THREADS; i++) {  
-		if (!(t = thread_create(thread, (void *)(__native)i, TASK, 0)))
+		if (!(t = thread_create(slabtest, (void *)(__native)i, TASK, 0, "slabtest")))
 			panic("could not create thread\n");
 		thread_ready(t);
Index: test/mm/slab2/test.c
===================================================================
--- test/mm/slab2/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/mm/slab2/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -123,5 +123,5 @@
 #define THREADS 8
 
-static void thread(void *priv)
+static void slabtest(void *priv)
 {
 	void *data=NULL, *new;
@@ -189,5 +189,5 @@
 	semaphore_initialize(&thr_sem,0);
 	for (i=0; i<THREADS; i++) {  
-		if (!(t = thread_create(thread, NULL, TASK, 0)))
+		if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest")))
 			panic("could not create thread\n");
 		thread_ready(t);
Index: test/synch/rwlock2/test.c
===================================================================
--- test/synch/rwlock2/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/synch/rwlock2/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -75,5 +75,5 @@
 	rwlock_read_lock(&rwlock);	
 	
-	thrd = thread_create(writer, NULL, TASK, 0);
+	thrd = thread_create(writer, NULL, TASK, 0, "writer");
 	if (thrd)
 		thread_ready(thrd);
Index: test/synch/rwlock3/test.c
===================================================================
--- test/synch/rwlock3/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/synch/rwlock3/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -78,5 +78,5 @@
 	
 	for (i=0; i<4; i++) {
-		thrd = thread_create(reader, NULL, TASK, 0);
+		thrd = thread_create(reader, NULL, TASK, 0, "reader");
 		if (thrd)
 			thread_ready(thrd);
Index: test/synch/rwlock4/test.c
===================================================================
--- test/synch/rwlock4/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/synch/rwlock4/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -138,5 +138,5 @@
 		printf("Creating %d readers\n", k);
 		for (i=0; i<k; i++) {
-			thrd = thread_create(reader, NULL, TASK, 0);
+			thrd = thread_create(reader, NULL, TASK, 0, "reader");
 			if (thrd)
 				thread_ready(thrd);
@@ -148,5 +148,5 @@
 		printf("Creating %d writers\n", k);
 		for (i=0; i<k; i++) {
-			thrd = thread_create(writer, NULL, TASK, 0);
+			thrd = thread_create(writer, NULL, TASK, 0, "writer");
 			if (thrd)
 				thread_ready(thrd);
Index: test/synch/rwlock5/test.c
===================================================================
--- test/synch/rwlock5/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/synch/rwlock5/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -96,5 +96,5 @@
 		for (j=0; j<(READERS+WRITERS)/2; j++) {
 			for (k=0; k<i; k++) {
-				thrd = thread_create(reader, NULL, TASK, 0);
+				thrd = thread_create(reader, NULL, TASK, 0, "reader");
 				if (thrd)
 					thread_ready(thrd);
@@ -103,5 +103,5 @@
 			}
 			for (k=0; k<(4-i); k++) {
-				thrd = thread_create(writer, NULL, TASK, 0);
+				thrd = thread_create(writer, NULL, TASK, 0, "writer");
 				if (thrd)
 					thread_ready(thrd);
Index: test/synch/semaphore1/test.c
===================================================================
--- test/synch/semaphore1/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/synch/semaphore1/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -100,5 +100,5 @@
 		for (j=0; j<(CONSUMERS+PRODUCERS)/2; j++) {
 			for (k=0; k<i; k++) {
-				thrd = thread_create(consumer, NULL, TASK, 0);
+				thrd = thread_create(consumer, NULL, TASK, 0, "consumer");
 				if (thrd)
 					thread_ready(thrd);
@@ -107,5 +107,5 @@
 			}
 			for (k=0; k<(4-i); k++) {
-				thrd = thread_create(producer, NULL, TASK, 0);
+				thrd = thread_create(producer, NULL, TASK, 0, "producer");
 				if (thrd)
 					thread_ready(thrd);
Index: test/synch/semaphore2/test.c
===================================================================
--- test/synch/semaphore2/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/synch/semaphore2/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -108,5 +108,5 @@
 		printf("Creating %d consumers\n", k);
 		for (i=0; i<k; i++) {
-			thrd = thread_create(consumer, NULL, TASK, 0);
+			thrd = thread_create(consumer, NULL, TASK, 0, "consumer");
 			if (thrd)
 				thread_ready(thrd);
Index: test/thread/thread1/test.c
===================================================================
--- test/thread/thread1/test.c	(revision 46579c668e7949ef922a5e481b7b114d89e019b3)
+++ test/thread/thread1/test.c	(revision ff14c520ac9ef1cfa24af4cbbfd3235d2bda51c5)
@@ -40,5 +40,5 @@
 #define THREADS 5
 
-static void thread(void *data)
+static void threadtest(void *data)
 {
     while(1)
@@ -55,5 +55,5 @@
 
 	for (i=0; i<THREADS; i++) {  
-		if (!(t = thread_create(thread, NULL, TASK, 0)))
+		if (!(t = thread_create(threadtest, NULL, TASK, 0, "threadtest")))
 			panic("could not create thread\n");
 		thread_ready(t);
