added more output to vma_dump()
This commit is contained in:
parent
2f2dd1d3c7
commit
d275c0a00a
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);
|
spinlock_lock(&task->vma_lock);
|
||||||
|
|
||||||
|
int cnt = 0;
|
||||||
tmp = task->vma_list;
|
tmp = task->vma_list;
|
||||||
while (tmp) {
|
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)
|
if (tmp->type & VMA_READ)
|
||||||
kputs("r");
|
kputs("r");
|
||||||
|
@ -93,6 +94,7 @@ int vma_dump(task_t* task)
|
||||||
kputs("\n");
|
kputs("\n");
|
||||||
|
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
|
cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
spinlock_unlock(&task->vma_lock);
|
spinlock_unlock(&task->vma_lock);
|
||||||
|
|
Loading…
Add table
Reference in a new issue