/uspace/trunk/libc/arch/ia32/src/entry.s |
---|
40,8 → 40,9 |
mov %ax, %ds |
mov %ax, %es |
mov %ax, %fs |
mov %ax, %gs |
# Do not set %gs, it contains descriptor that can see TLS |
call __main |
call main |
call __exit |
/uspace/trunk/libc/arch/ia32/src/thread_entry.s |
---|
38,14 → 38,13 |
mov %dx, %ds |
mov %dx, %es |
mov %dx, %fs |
mov %dx, %gs |
# Do not set %gs, it contains descriptor that can see TLS |
# |
# EAX contains address of uarg. |
# |
pushl %eax |
call thread_main |
addl $4, %esp |
call __thread_main |
# |
# Not reached. |