Subversion Repositories HelenOS

Rev

Rev 1914 | Rev 2007 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1914 Rev 1915
Line 1590... Line 1590...
1590
    mutex_lock(&as->lock);
1590
    mutex_lock(&as->lock);
1591
   
1591
   
1592
    /* print out info about address space areas */
1592
    /* print out info about address space areas */
1593
    link_t *cur;
1593
    link_t *cur;
1594
    for (cur = as->as_area_btree.leaf_head.next; cur != &as->as_area_btree.leaf_head; cur = cur->next) {
1594
    for (cur = as->as_area_btree.leaf_head.next; cur != &as->as_area_btree.leaf_head; cur = cur->next) {
1595
        as_area_t *area;
-
 
1596
        btree_node_t *node;
-
 
1597
       
-
 
1598
        node = list_get_instance(cur, btree_node_t, leaf_link);
1595
        btree_node_t *node = list_get_instance(cur, btree_node_t, leaf_link);
1599
       
1596
       
1600
        int i;
1597
        int i;
1601
        for (i = 0; i < node->keys; i++) {
1598
        for (i = 0; i < node->keys; i++) {
1602
            area = node->value[i];
1599
            as_area_t *area = node->value[i];
1603
       
1600
       
1604
            mutex_lock(&area->lock);
1601
            mutex_lock(&area->lock);
1605
            printf("as_area: %p, base=%p, pages=%d (%p - %p)\n",
1602
            printf("as_area: %p, base=%p, pages=%d (%p - %p)\n",
1606
                area, area->base, area->pages, area->base, area->base + area->pages*PAGE_SIZE);
1603
                area, area->base, area->pages, area->base, area->base + area->pages*PAGE_SIZE);
1607
            mutex_unlock(&area->lock);
1604
            mutex_unlock(&area->lock);