42,7 → 42,7 |
#include <align.h> |
|
SPINLOCK_INITIALIZE(zone_head_lock); /**< this lock protects zone_head list */ |
link_t zone_head; /**< list of all zones in the system */ |
LIST_INITIALIZE(zone_head); /**< list of all zones in the system */ |
|
/** Blacklist containing non-available areas of memory. |
* |
68,7 → 68,6 |
void frame_init(void) |
{ |
if (config.cpu_active == 1) { |
zone_init(); |
frame_region_not_free(KA2PA(config.base), config.kernel_size); |
} |
|
235,16 → 234,6 |
zone_blacklist[index].size = size; |
} |
|
|
/** Initialize zonekeeping |
* |
* Initialize zonekeeping. |
*/ |
void zone_init(void) |
{ |
list_initialize(&zone_head); |
} |
|
/** Create frame zones in region of available memory. |
* |
* Avoid any black listed areas of non-available memory. |