Browse Source

Fix the bug when empty run_link in lab6_result

main
ArchStacker 9 years ago
parent
commit
d4da46a116
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      labcodes_answer/lab6_result/kern/process/proc.c

+ 1
- 1
labcodes_answer/lab6_result/kern/process/proc.c View File

@ -118,7 +118,7 @@ alloc_proc(void) {
proc->wait_state = 0;
proc->cptr = proc->optr = proc->yptr = NULL;
proc->rq = NULL;
proc->run_link.prev = proc->run_link.next = NULL;
list_init(&(proc->run_link));
proc->time_slice = 0;
proc->lab6_run_pool.left = proc->lab6_run_pool.right = proc->lab6_run_pool.parent = NULL;
proc->lab6_stride = 0;

Loading…
Cancel
Save