/uspace/trunk/libc/arch/mips32/src/entry.s |
36,18 → 36,13 |
## User-space task entry point |
# |
# |
.ent __entry |
__entry: |
lui $28, _gp |
|
# Mips o32 may store its arguments on stack, make space, |
# so that it could work with -O0 |
addiu $sp, -16 |
|
jal __main |
|
|
jal main |
nop |
|
jal __exit |
nop |
|
.end __entry |
/uspace/trunk/libc/arch/mips32/src/thread_entry.s |
37,7 → 37,6 |
## User-space thread entry point for all but the first threads. |
# |
# |
.ent __thread_entry |
__thread_entry: |
lui $28, _gp |
|
45,13 → 44,9 |
# v0 contains address of uarg. |
# |
add $4, $2, 0 |
# Mips o32 may store its arguments on stack, make space |
addiu $sp, -16 |
jal thread_main |
nop |
|
j __thread_main |
nop |
|
# |
# Not reached. |
# |
.end __thread_entry |