Changeset 7dd2561 in mainline for generic/src/mm/frame.c


Ignore:
Timestamp:
2005-12-15T15:24:52Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80d2bdb
Parents:
dc747e3
Message:

Add LIST_INITIALIZE() macro to declare and initialize statically allocated lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/mm/frame.c

    rdc747e3 r7dd2561  
    4343
    4444SPINLOCK_INITIALIZE(zone_head_lock);    /**< this lock protects zone_head list */
    45 link_t zone_head;                       /**< list of all zones in the system */
     45LIST_INITIALIZE(zone_head);             /**< list of all zones in the system */
    4646
    4747/** Blacklist containing non-available areas of memory.
     
    6969{
    7070        if (config.cpu_active == 1) {
    71                 zone_init();
    7271                frame_region_not_free(KA2PA(config.base), config.kernel_size);
    7372        }
     
    234233        zone_blacklist[index].base = base;
    235234        zone_blacklist[index].size = size;
    236 }
    237 
    238 
    239 /** Initialize zonekeeping
    240  *
    241  * Initialize zonekeeping.
    242  */
    243 void zone_init(void)
    244 {
    245         list_initialize(&zone_head);
    246235}
    247236
Note: See TracChangeset for help on using the changeset viewer.