os_kernel_lab/labcodes/lab7/kern/process/entry.S

11 lines
302 B
ArmAsm
Raw Permalink Normal View History

2012-08-22 12:32:13 +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