Changeset ff14c520 in mainline for generic/src/main
- Timestamp:
- 2006-03-16T22:31:39Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93165be
- Parents:
- 37c57f2
- Location:
- generic/src/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/main/kinit.c
r37c57f2 rff14c520 81 81 * Just a beautification. 82 82 */ 83 if ((t = thread_create(kmp, NULL, TASK, 0 ))) {83 if ((t = thread_create(kmp, NULL, TASK, 0, "kmp"))) { 84 84 spinlock_lock(&t->lock); 85 85 t->flags |= X_WIRED; … … 106 106 for (i = 0; i < config.cpu_count; i++) { 107 107 108 if ((t = thread_create(kcpulb, NULL, TASK, 0 ))) {108 if ((t = thread_create(kcpulb, NULL, TASK, 0, "kcpulb"))) { 109 109 spinlock_lock(&t->lock); 110 110 t->flags |= X_WIRED; … … 127 127 * Create kernel console. 128 128 */ 129 if ((t = thread_create(kconsole, "kconsole", TASK, 0 )))129 if ((t = thread_create(kconsole, "kconsole", TASK, 0, "kconsole"))) 130 130 thread_ready(t); 131 131 else … … 143 143 panic("init[%d].addr is not frame aligned", i); 144 144 145 utask = task_run_program((void *) init.tasks[i].addr );145 utask = task_run_program((void *) init.tasks[i].addr, "USPACE"); 146 146 if (utask) { 147 147 if (!ipc_phone_0) -
generic/src/main/main.c
r37c57f2 rff14c520 197 197 * Create kernel task. 198 198 */ 199 k = task_create(AS_KERNEL );199 k = task_create(AS_KERNEL, "KERNEL"); 200 200 if (!k) 201 201 panic("can't create kernel task\n"); … … 204 204 * Create the first thread. 205 205 */ 206 t = thread_create(kinit, NULL, k, 0 );206 t = thread_create(kinit, NULL, k, 0, "kinit"); 207 207 if (!t) 208 208 panic("can't create kinit thread\n");
Note:
See TracChangeset
for help on using the changeset viewer.
