Merge branch 'master' into prog-loader
[lunaix-os.git] / lunaix-os / kernel / process / sched.c
index f0c0a988c97d59c9f30bdff81266ac7cac4aae44..d2196166b6b2bfc37ced58f303dbe31a15d2e490 100644 (file)
@@ -330,7 +330,7 @@ alloc_process()
     proc->fxstate =
       vzalloc_dma(512); // FXSAVE需要十六位对齐地址,使用DMA块(128位对齐)
 
     proc->fxstate =
       vzalloc_dma(512); // FXSAVE需要十六位对齐地址,使用DMA块(128位对齐)
 
-    llist_init_head(&proc->mm.regions.head);
+    llist_init_head(&proc->mm.regions);
     llist_init_head(&proc->tasks);
     llist_init_head(&proc->children);
     llist_init_head(&proc->grp_member);
     llist_init_head(&proc->tasks);
     llist_init_head(&proc->children);
     llist_init_head(&proc->grp_member);
@@ -401,7 +401,7 @@ destroy_process(pid_t pid)
     vfree_dma(proc->fxstate);
 
     struct mm_region *pos, *n;
     vfree_dma(proc->fxstate);
 
     struct mm_region *pos, *n;
-    llist_for_each(pos, n, &proc->mm.regions.head, head)
+    llist_for_each(pos, n, &proc->mm.regions, head)
     {
         vfree(pos);
     }
     {
         vfree(pos);
     }