Subversion Repositories HelenOS

Rev

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

Rev 2035 Rev 2048
Line 1136... Line 1136...
1136
    spinlock_lock(&zone->lock);
1136
    spinlock_lock(&zone->lock);
1137
    printf("Memory zone information\n");
1137
    printf("Memory zone information\n");
1138
    printf("Zone base address: %#.*p\n", sizeof(uintptr_t) * 2, PFN2ADDR(zone->base));
1138
    printf("Zone base address: %#.*p\n", sizeof(uintptr_t) * 2, PFN2ADDR(zone->base));
1139
    printf("Zone size: %zd frames (%zdK)\n", zone->count, ((zone->count) * FRAME_SIZE) >> 10);
1139
    printf("Zone size: %zd frames (%zdK)\n", zone->count, ((zone->count) * FRAME_SIZE) >> 10);
1140
    printf("Allocated space: %zd frames (%zdK)\n", zone->busy_count, (zone->busy_count * FRAME_SIZE) >> 10);
1140
    printf("Allocated space: %zd frames (%zdK)\n", zone->busy_count, (zone->busy_count * FRAME_SIZE) >> 10);
1141
    printf("Available space: %zd (%zdK)\n", zone->free_count, (zone->free_count * FRAME_SIZE) >> 10);
1141
    printf("Available space: %zd frames (%zdK)\n", zone->free_count, (zone->free_count * FRAME_SIZE) >> 10);
1142
    buddy_system_structure_print(zone->buddy_system, FRAME_SIZE);
1142
    buddy_system_structure_print(zone->buddy_system, FRAME_SIZE);
1143
   
1143
   
1144
    spinlock_unlock(&zone->lock);
1144
    spinlock_unlock(&zone->lock);
1145
out:
1145
out:
1146
    spinlock_unlock(&zones.lock);
1146
    spinlock_unlock(&zones.lock);