Changeset 7dd2561 in mainline for generic/src
- Timestamp:
- 2005-12-15T15:24:52Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 80d2bdb
- Parents:
- dc747e3
- Location:
- generic/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/console/kconsole.c
rdc747e3 r7dd2561 67 67 68 68 SPINLOCK_INITIALIZE(cmd_lock); /**< Lock protecting command list. */ 69 link_t cmd_head;/**< Command list. */69 LIST_INITIALIZE(cmd_head); /**< Command list. */ 70 70 71 71 static cmd_info_t *parse_cmdline(char *cmdline, size_t len); … … 77 77 { 78 78 int i; 79 80 list_initialize(&cmd_head);81 79 82 80 cmd_init(); -
generic/src/mm/frame.c
rdc747e3 r7dd2561 43 43 44 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 LIST_INITIALIZE(zone_head); /**< list of all zones in the system */ 46 46 47 47 /** Blacklist containing non-available areas of memory. … … 69 69 { 70 70 if (config.cpu_active == 1) { 71 zone_init();72 71 frame_region_not_free(KA2PA(config.base), config.kernel_size); 73 72 } … … 234 233 zone_blacklist[index].base = base; 235 234 zone_blacklist[index].size = size; 236 }237 238 239 /** Initialize zonekeeping240 *241 * Initialize zonekeeping.242 */243 void zone_init(void)244 {245 list_initialize(&zone_head);246 235 } 247 236 -
generic/src/proc/task.c
rdc747e3 r7dd2561 38 38 39 39 SPINLOCK_INITIALIZE(tasks_lock); 40 link_t tasks_head; 41 40 LIST_INITIALIZE(tasks_head); 42 41 43 42 /** Initialize tasks … … 49 48 { 50 49 TASK = NULL; 51 list_initialize(&tasks_head);52 50 } 53 51 -
generic/src/proc/thread.c
rdc747e3 r7dd2561 56 56 57 57 SPINLOCK_INITIALIZE(threads_lock); /**< Lock protecting threads_head list. For locking rules, see declaration thereof. */ 58 link_t threads_head;/**< List of all threads. */58 LIST_INITIALIZE(threads_head); /**< List of all threads. */ 59 59 60 60 SPINLOCK_INITIALIZE(tidlock); … … 97 97 THREAD = NULL; 98 98 nrdy = 0; 99 list_initialize(&threads_head);100 99 } 101 100
Note:
See TracChangeset
for help on using the changeset viewer.