Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3168 → Rev 3169

/branches/dynload/uspace/srv/loader/arch/ia32/ia32.s
28,13 → 28,22
 
.globl program_run
 
## void program_run(uintptr_t entry_point);
## void program_run(void *entry_point, void *pcb);
#
# Jump to a program entry point
program_run:
# Use standard ia32 prologue not to confuse anybody
push %ebp
movl %esp, %ebp
 
# %eax := entry_point
movl 0x8(%ebp), %eax
 
# %ebx := pcb
# pcb is passed to the entry point int %ebx
mov 0xc(%ebp), %ebx
 
# Save a tiny bit of stack space
pop %ebp
 
jmp %eax