35,6 → 35,7 |
|
## User-space task entry point |
# |
# $a0 ($4) contains the PCB pointer |
# |
.ent __entry |
__entry: |
41,7 → 42,6 |
.frame $sp, 32, $31 |
.cpload $25 |
|
|
# 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 |
49,6 → 49,10 |
addiu $sp, -32 |
.cprestore 16 # Allow PIC code |
|
# Pass pcb_ptr to __main() as the first argument. pcb_ptr is already |
# in $a0. As the first argument is passed in $a0, no operation |
# is needed. |
|
jal __main |
nop |
|