//uspace/trunk/libc/arch/mips32/src/entry.s |
28,7 → 28,8 |
|
.text |
.section .init, "ax" |
.global __start |
.global __entry |
.global __entry_driver |
.set noreorder |
.option pic2 |
|
35,8 → 36,8 |
## User-space task entry point |
# |
# |
.ent __start |
__start: |
.ent __entry |
__entry: |
.frame $sp, 32, $31 |
.cpload $25 |
|
51,14 → 52,37 |
jal __main |
nop |
|
jal __io_init |
nop |
|
jal main |
nop |
|
jal __exit |
nop |
|
.ent __entry_driver |
__entry_driver: |
.frame $sp, 32, $31 |
.cpload $25 |
|
.end __start |
|
# Mips o32 may store its arguments on stack, make space (16 bytes), |
# so that it could work with -O0 |
# Make space additional 16 bytes for the stack frame |
|
addiu $sp, -32 |
.cprestore 16 # Allow PIC code |
|
jal __main |
nop |
|
jal main |
nop |
|
jal __exit |
nop |
|
# Alignment of output section data to 0x4000 |
.section .data |
.align 14 |