os_kernel_lab/code/lab4/kern/process/entry.S
2012-08-22 12:32:13 +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