Skip to content

Commit

Permalink
fixed the bug in #7
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 committed Apr 2, 2012
1 parent b0b3c6a commit 079a224
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mm/vm.c
Expand Up @@ -37,6 +37,7 @@ int vm_clone(struct vm *to){
vp = &(cu->p_vm.vm_area[i]);
if (vp->v_flag != 0) {
to->vm_area[i] = *vp;
to->vm_area[i].v_ino->i_count++;
}
}
// copy pages tables, with PTE_W turned off.
Expand Down Expand Up @@ -157,3 +158,10 @@ int vma_init(struct vma *vp, uint base, uint size, uint flag, struct inode *ip,
}
}

/* -------------------------------------------------- */

void dump_vm(struct vm *vp){
printk("vm: %x\n", vp);
printk("vm: ino: %x\n", vp->vm_text.v_ino);
dump_inode(vp->vm_text.v_ino);
}

0 comments on commit 079a224

Please sign in to comment.