浏览代码

Fix the bug when empty run_link in lab8_result

main
ArchStacker 9 年前
父节点
当前提交
0c7968dfd2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      labcodes_answer/lab8_result/kern/process/proc.c

+ 1
- 1
labcodes_answer/lab8_result/kern/process/proc.c 查看文件

@ -128,7 +128,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;

正在加载...
取消
保存