Rev 2133 | Rev 2725 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2133 | Rev 2712 | ||
---|---|---|---|
Line 1118... | Line 1118... | ||
1118 | unsigned int i; |
1118 | unsigned int i; |
1119 | ipl_t ipl; |
1119 | ipl_t ipl; |
1120 | 1120 | ||
1121 | ipl = interrupts_disable(); |
1121 | ipl = interrupts_disable(); |
1122 | spinlock_lock(&zones.lock); |
1122 | spinlock_lock(&zones.lock); |
- | 1123 | ||
- | 1124 | if (sizeof(void *) == 4) { |
|
1123 | printf("# base address free frames busy frames\n"); |
1125 | printf("# base address free frames busy frames\n"); |
1124 | printf("-- ------------ ------------ ------------\n"); |
1126 | printf("-- ------------ ------------ ------------\n"); |
- | 1127 | } else { |
|
- | 1128 | printf("# base address free frames busy frames\n"); |
|
- | 1129 | printf("-- -------------------- ------------ ------------\n"); |
|
- | 1130 | } |
|
- | 1131 | ||
1125 | for (i = 0; i < zones.count; i++) { |
1132 | for (i = 0; i < zones.count; i++) { |
1126 | zone = zones.info[i]; |
1133 | zone = zones.info[i]; |
1127 | spinlock_lock(&zone->lock); |
1134 | spinlock_lock(&zone->lock); |
- | 1135 | ||
- | 1136 | if (sizeof(void *) == 4) |
|
1128 | printf("%-2d %12p %12zd %12zd\n", i, PFN2ADDR(zone->base), |
1137 | printf("%-2d %#10zx %12zd %12zd\n", i, PFN2ADDR(zone->base), |
- | 1138 | zone->free_count, zone->busy_count); |
|
- | 1139 | else |
|
- | 1140 | printf("%-2d %#18zx %12zd %12zd\n", i, PFN2ADDR(zone->base), |
|
1129 | zone->free_count, zone->busy_count); |
1141 | zone->free_count, zone->busy_count); |
- | 1142 | ||
1130 | spinlock_unlock(&zone->lock); |
1143 | spinlock_unlock(&zone->lock); |
1131 | } |
1144 | } |
- | 1145 | ||
1132 | spinlock_unlock(&zones.lock); |
1146 | spinlock_unlock(&zones.lock); |
1133 | interrupts_restore(ipl); |
1147 | interrupts_restore(ipl); |
1134 | } |
1148 | } |
1135 | 1149 | ||
1136 | /** Prints zone details. |
1150 | /** Prints zone details. |