/branches/dynload/uspace/lib/libc/arch/ia32/src/entry.s |
---|
34,6 → 34,7 |
## User-space task entry point |
# |
# %ebx contains the PCB pointer |
# |
__entry: |
mov %ss, %ax |
42,6 → 43,9 |
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 |