Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3169 → Rev 3161

/branches/dynload/uspace/srv/loader/arch/ia32/ia32.s
28,22 → 28,13
 
.globl program_run
 
## void program_run(void *entry_point, void *pcb);
## void program_run(uintptr_t entry_point);
#
# 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