Correct a spelling mistake
This commit is contained in:
@@ -283,7 +283,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -294,7 +294,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
fork_out:
|
fork_out:
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -393,7 +393,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
|
|
||||||
//LAB5 YOUR CODE : (update LAB4 steps)
|
//LAB5 YOUR CODE : (update LAB4 steps)
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -403,7 +403,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
|
|
||||||
//LAB5 YOUR CODE : (update LAB4 steps)
|
//LAB5 YOUR CODE : (update LAB4 steps)
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -403,7 +403,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
|
|
||||||
//LAB5 YOUR CODE : (update LAB4 steps)
|
//LAB5 YOUR CODE : (update LAB4 steps)
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -451,7 +451,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
|
|
||||||
//LAB5 YOUR CODE : (update LAB4 steps)
|
//LAB5 YOUR CODE : (update LAB4 steps)
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -306,7 +306,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
if ((proc = alloc_proc()) == NULL) {
|
if ((proc = alloc_proc()) == NULL) {
|
||||||
goto fork_out;
|
goto fork_out;
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -401,7 +401,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
if ((proc = alloc_proc()) == NULL) {
|
if ((proc = alloc_proc()) == NULL) {
|
||||||
goto fork_out;
|
goto fork_out;
|
||||||
|
|||||||
@@ -396,7 +396,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -407,7 +407,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
if ((proc = alloc_proc()) == NULL) {
|
if ((proc = alloc_proc()) == NULL) {
|
||||||
goto fork_out;
|
goto fork_out;
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -413,7 +413,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
|
|
||||||
//LAB5 YOUR CODE : (update LAB4 steps)
|
//LAB5 YOUR CODE : (update LAB4 steps)
|
||||||
|
|||||||
@@ -449,7 +449,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -460,7 +460,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
|
|
||||||
//LAB5 YOUR CODE : (update LAB4 steps)
|
//LAB5 YOUR CODE : (update LAB4 steps)
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -281,7 +281,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
copy_thread(proc, stack, tf);
|
copy_thread(proc, stack, tf);
|
||||||
// 4. insert proc_struct into proc_list
|
// 4. insert proc_struct into proc_list
|
||||||
list_add_before(&proc_list, &proc->list_link);
|
list_add_before(&proc_list, &proc->list_link);
|
||||||
// 5. call wakup_proc to make the new child process RUNNABLE
|
// 5. call wakeup_proc to make the new child process RUNNABLE
|
||||||
wakeup_proc(proc);
|
wakeup_proc(proc);
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
nr_process++;
|
nr_process++;
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
* setup the kernel entry point and stack of process
|
* setup the kernel entry point and stack of process
|
||||||
* hash_proc: add proc into proc hash_list
|
* hash_proc: add proc into proc hash_list
|
||||||
* get_pid: alloc a unique pid for process
|
* get_pid: alloc a unique pid for process
|
||||||
* wakup_proc: set proc->state = PROC_RUNNABLE
|
* wakeup_proc: set proc->state = PROC_RUNNABLE
|
||||||
* VARIABLES:
|
* VARIABLES:
|
||||||
* proc_list: the process set's list
|
* proc_list: the process set's list
|
||||||
* nr_process: the number of process set
|
* nr_process: the number of process set
|
||||||
@@ -401,7 +401,7 @@ do_fork(uint32_t clone_flags, uintptr_t stack, struct trapframe *tf) {
|
|||||||
// 3. call copy_mm to dup OR share mm according clone_flag
|
// 3. call copy_mm to dup OR share mm according clone_flag
|
||||||
// 4. call copy_thread to setup tf & context in proc_struct
|
// 4. call copy_thread to setup tf & context in proc_struct
|
||||||
// 5. insert proc_struct into hash_list && proc_list
|
// 5. insert proc_struct into hash_list && proc_list
|
||||||
// 6. call wakup_proc to make the new child process RUNNABLE
|
// 6. call wakeup_proc to make the new child process RUNNABLE
|
||||||
// 7. set ret vaule using child proc's pid
|
// 7. set ret vaule using child proc's pid
|
||||||
if ((proc = alloc_proc()) == NULL) {
|
if ((proc = alloc_proc()) == NULL) {
|
||||||
goto fork_out;
|
goto fork_out;
|
||||||
|
|||||||
Reference in New Issue
Block a user