os_kernel_lab/labcodes_answer/lab7_result/kern/process/entry.S

11 lines
302 B
ArmAsm
Raw Permalink Normal View History

2014-08-20 15:42:20 +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