/kernel/trunk/generic/src/console/kconsole.c |
---|
66,7 → 66,7 |
*/ |
SPINLOCK_INITIALIZE(cmd_lock); /**< Lock protecting command list. */ |
LIST_INITIALIZE(cmd_head); /**< Command list. */ |
link_t cmd_head; /**< Command list. */ |
static cmd_info_t *parse_cmdline(char *cmdline, size_t len); |
static bool parse_argument(char *cmdline, size_t len, index_t *start, index_t *end); |
77,6 → 77,8 |
{ |
int i; |
list_initialize(&cmd_head); |
cmd_init(); |
for (i=0; i<KCONSOLE_HISTORY; i++) |
history[i][0] = '\0'; |
/kernel/trunk/generic/src/proc/task.c |
---|
37,8 → 37,9 |
#include <list.h> |
SPINLOCK_INITIALIZE(tasks_lock); |
LIST_INITIALIZE(tasks_head); |
link_t tasks_head; |
/** Initialize tasks |
* |
* Initialize kernel tasks support. |
47,6 → 48,7 |
void task_init(void) |
{ |
TASK = NULL; |
list_initialize(&tasks_head); |
} |
/kernel/trunk/generic/src/proc/thread.c |
---|
55,7 → 55,7 |
char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; /**< Thread states */ |
SPINLOCK_INITIALIZE(threads_lock); /**< Lock protecting threads_head list. For locking rules, see declaration thereof. */ |
LIST_INITIALIZE(threads_head); /**< List of all threads. */ |
link_t threads_head; /**< List of all threads. */ |
SPINLOCK_INITIALIZE(tidlock); |
__u32 last_tid = 0; |
96,6 → 96,7 |
{ |
THREAD = NULL; |
nrdy = 0; |
list_initialize(&threads_head); |
} |
/kernel/trunk/generic/src/mm/frame.c |
---|
42,7 → 42,7 |
#include <align.h> |
SPINLOCK_INITIALIZE(zone_head_lock); /**< this lock protects zone_head list */ |
LIST_INITIALIZE(zone_head); /**< list of all zones in the system */ |
link_t zone_head; /**< list of all zones in the system */ |
/** Blacklist containing non-available areas of memory. |
* |
68,6 → 68,7 |
void frame_init(void) |
{ |
if (config.cpu_active == 1) { |
zone_init(); |
frame_region_not_free(KA2PA(config.base), config.kernel_size); |
} |
234,6 → 235,16 |
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. |