added more output to vma_dump()
This commit is contained in:
parent
b0749fc448
commit
2e230a609e
1 changed files with 3 additions and 1 deletions
4
mm/vma.c
4
mm/vma.c
|
@ -72,9 +72,10 @@ int vma_dump(task_t* task)
|
|||
|
||||
spinlock_lock(&task->vma_lock);
|
||||
|
||||
int cnt = 0;
|
||||
tmp = task->vma_list;
|
||||
while (tmp) {
|
||||
kprintf("%8x - %8x: ", tmp->start, tmp->end);
|
||||
kprintf("#%d\t%8x - %8x: size=%6x, flags=", cnt, tmp->start, tmp->end, tmp->end - tmp->start);
|
||||
|
||||
if (tmp->type & VMA_READ)
|
||||
kputs("r");
|
||||
|
@ -93,6 +94,7 @@ int vma_dump(task_t* task)
|
|||
kputs("\n");
|
||||
|
||||
tmp = tmp->next;
|
||||
cnt++;
|
||||
}
|
||||
|
||||
spinlock_unlock(&task->vma_lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue