os_kernel_lab/labcodes/lab4/kern/process/entry.S
2013-09-17 22:21:48 +08:00

11 lines
302 B
ArmAsm

.text
.globl kernel_thread_entry
kernel_thread_entry: # void kernel_thread(void)
pushl %edx # push arg
call *%ebx # call fn
pushl %eax # save the return value of fn(arg)
call do_exit # call do_exit to terminate current thread