Index: uspace/lib/libc/arch/ia32/src/entry.s
===================================================================
--- uspace/lib/libc/arch/ia32/src/entry.s	(revision d51db079aa01ad329ce298e255b1840cd48189bb)
+++ uspace/lib/libc/arch/ia32/src/entry.s	(revision 5e8ddf5690a75f99176a2b7d8083393b9361e06b)
@@ -35,4 +35,5 @@
 ## User-space task entry point
 #
+# %ebx contains the PCB pointer
 #
 __entry:
@@ -42,6 +43,8 @@
 	mov %ax, %fs
 	# Do not set %gs, it contains descriptor that can see TLS
-	
+
+	# Pass the PCB pointer to __main as the first argument
+	pushl %ebx
 	call __main
-	call main
+
 	call __exit
