Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3168 → Rev 3169

/branches/dynload/uspace/srv/loader/arch/mips32/mips32.s
31,12 → 31,19
.global program_run
.set noreorder
 
## void program_run(uintptr_t entry_point);
## void program_run(void *entry_point, void *pcb);
#
# $a0 (=$4) contains entry_point
# $a1 (=$5) contains pcb
#
# Jump to a program entry point
.ent program_run
program_run:
move $25, $4
# tmp := entry_point
move $25, $a0
 
# Pass pcb to the entry point in $a0
move $a0, $a1
jr $25
nop
.end