Subversion Repositories HelenOS-historic

Rev

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

Rev 615 Rev 623
Line 39... Line 39...
39
#include <arch/asm.h>
39
#include <arch/asm.h>
40
#include <arch.h>
40
#include <arch.h>
41
#include <print.h>
41
#include <print.h>
42
#include <align.h>
42
#include <align.h>
43
 
43
 
44
spinlock_t zone_head_lock;       /**< this lock protects zone_head list */
44
SPINLOCK_INITIALIZE(zone_head_lock);    /**< this lock protects zone_head list */
45
link_t zone_head;                /**< list of all zones in the system */
45
link_t zone_head;                   /**< list of all zones in the system */
46
 
46
 
47
/** Blacklist containing non-available areas of memory.
47
/** Blacklist containing non-available areas of memory.
48
 *
48
 *
49
 * This blacklist is used to exclude frames that cannot be allocated
49
 * This blacklist is used to exclude frames that cannot be allocated
50
 * (e.g. kernel memory) from available memory map.
50
 * (e.g. kernel memory) from available memory map.
Line 240... Line 240...
240
 *
240
 *
241
 * Initialize zonekeeping.
241
 * Initialize zonekeeping.
242
 */
242
 */
243
void zone_init(void)
243
void zone_init(void)
244
{
244
{
245
    spinlock_initialize(&zone_head_lock, "zone_head_lock");
-
 
246
    list_initialize(&zone_head);
245
    list_initialize(&zone_head);
247
}
246
}
248
 
247
 
249
/** Create frame zones in region of available memory.
248
/** Create frame zones in region of available memory.
250
 *
249
 *