Rev 541 | Rev 564 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 541 | Rev 552 | ||
---|---|---|---|
Line 239... | Line 239... | ||
239 | * |
239 | * |
240 | * Initialize zonekeeping. |
240 | * Initialize zonekeeping. |
241 | */ |
241 | */ |
242 | void zone_init(void) |
242 | void zone_init(void) |
243 | { |
243 | { |
244 | spinlock_initialize(&zone_head_lock); |
244 | spinlock_initialize(&zone_head_lock, "zone_head_lock"); |
245 | list_initialize(&zone_head); |
245 | list_initialize(&zone_head); |
246 | } |
246 | } |
247 | 247 | ||
248 | /** Create frame zones in region of available memory. |
248 | /** Create frame zones in region of available memory. |
249 | * |
249 | * |
Line 314... | Line 314... | ||
314 | cnt = size / FRAME_SIZE; |
314 | cnt = size / FRAME_SIZE; |
315 | 315 | ||
316 | z = (zone_t *) early_malloc(sizeof(zone_t)); |
316 | z = (zone_t *) early_malloc(sizeof(zone_t)); |
317 | if (z) { |
317 | if (z) { |
318 | link_initialize(&z->link); |
318 | link_initialize(&z->link); |
319 | spinlock_initialize(&z->lock); |
319 | spinlock_initialize(&z->lock, "zone_lock"); |
320 | 320 | ||
321 | z->base = start; |
321 | z->base = start; |
322 | z->flags = flags; |
322 | z->flags = flags; |
323 | 323 | ||
324 | z->free_count = cnt; |
324 | z->free_count = cnt; |