Index: init/init.c
===================================================================
--- init/init.c	(revision 520492a919fe1fbbbca2ba14c75775dab9c6f60a)
+++ init/init.c	(revision 8fe1cdb01b8894ae130c2960e9b330b65a22e88f)
@@ -40,4 +40,6 @@
 atomic_t ftx;
 
+int __thread tls_prom;
+
 extern void utest(void *arg);
 void utest(void *arg)
@@ -256,9 +258,12 @@
 static int ptest(void *arg)
 {
-	printf("Pseudo thread stage1.\n");
+	tls_prom = -1;
+	printf("Pseudo thread stage%d.\n", -tls_prom);
+	tls_prom = -2;
 	psthread_schedule_next();
-	printf("Pseudo thread stage2.\n");
+	printf("Pseudo thread stage%d.\n", -tls_prom);
+	tls_prom = -3;
 	psthread_schedule_next();
-	printf("Pseudo thread stage3.\n");
+	printf("Pseudo thread stage%d\n", -tls_prom);
 	psthread_schedule_next();
 	printf("Pseudo thread stage4.\n");
@@ -291,5 +296,5 @@
 	if (futex_down(&ftx) < 0)
 		printf("Futex failed.\n");
-
+/*
 	if ((tid = thread_create(utest, NULL, "utest")) != -1) {
 		printf("Created thread tid=%d\n", tid);
@@ -299,5 +304,5 @@
 		printf("Created thread tid=%d\n", tid);
 	}
-
+*/
 	int i;
 	
@@ -308,10 +313,15 @@
 		printf("Futex failed.\n");
 
+
+	printf("Creating pathread\n");
+	tls_prom = 1;
 	ptid = psthread_create(ptest, NULL);
-	printf("Main thread stage1.\n");
+	printf("Main thread stage%d\n",tls_prom);
+	tls_prom = 2;
 	psthread_schedule_next();;
-	printf("Main thread stage2.\n");
+	printf("Main thread stage%d\n", tls_prom);
+	tls_prom = 3;
 	psthread_schedule_next();;
-	printf("Main thread stage3.\n");
+	printf("Main thread stage%d\n", tls_prom);
 
 	psthread_join(ptid);
