os_kernel_lab/related_info/lab4/lab4-spoc-discuss/kern/process/entry.S

11 lines
302 B
ArmAsm
Raw Normal View History

2015-04-15 11:23:03 +08:00
.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