add lab answers
This commit is contained in:
10
labcodes_answer/lab7_result/kern/process/entry.S
Normal file
10
labcodes_answer/lab7_result/kern/process/entry.S
Normal file
@@ -0,0 +1,10 @@
|
||||
.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
|
||||
|
||||
Reference in New Issue
Block a user