Changeset 1e9d0e3 in mainline
- Timestamp:
- 2008-06-21T10:57:51Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1a48bcd
- Parents:
- 46c1234
- Location:
- kernel/generic/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r46c1234 r1e9d0e3 147 147 * Create kernel console. 148 148 */ 149 t = thread_create(kconsole, (void *) "kconsole", TASK, 0, "kconsole", false); 149 t = thread_create(kconsole, (void *) "kconsole", TASK, 0, "kconsole", 150 false); 150 151 if (t) 151 152 thread_ready(t); … … 167 168 } 168 169 169 threads[i] = thread_create_program( 170 (void *) init.tasks[i].addr,"uspace");170 threads[i] = thread_create_program((void *) init.tasks[i].addr, 171 "uspace"); 171 172 172 173 if (threads[i] != NULL) { … … 184 185 185 186 if (rd != RE_OK) 186 printf("Init binary %" PRIc " not used, error code %d.\n", i, rd); 187 printf("Init binary %" PRIc " not used, error " 188 "code %d.\n", i, rd); 187 189 } 188 190 } -
kernel/generic/src/proc/scheduler.c
r46c1234 r1e9d0e3 452 452 * Entering state is unexpected. 453 453 */ 454 panic("tid%" PRIu64 ": unexpected state %s\n", THREAD->tid,455 thread_states[THREAD->state]);454 panic("tid%" PRIu64 ": unexpected state %s\n", 455 THREAD->tid, thread_states[THREAD->state]); 456 456 break; 457 457 } … … 505 505 506 506 #ifdef SCHEDULER_VERBOSE 507 printf("cpu%u: tid %" PRIu64 " (priority=%d, ticks=%" PRIu64 ", nrdy=%ld)\n",508 CPU->id, THREAD->tid, THREAD->priority, THREAD->ticks,509 atomic_get(&CPU->nrdy));507 printf("cpu%u: tid %" PRIu64 " (priority=%d, ticks=%" PRIu64 508 ", nrdy=%ld)\n", CPU->id, THREAD->tid, THREAD->priority, 509 THREAD->ticks, atomic_get(&CPU->nrdy)); 510 510 #endif 511 511 … … 641 641 spinlock_lock(&t->lock); 642 642 #ifdef KCPULB_VERBOSE 643 printf("kcpulb%u: TID %" PRIu64 " -> cpu%u, nrdy=%ld,"644 " avg=%ld\n", CPU->id, t->tid, CPU->id,645 atomic_get(&CPU->nrdy),643 printf("kcpulb%u: TID %" PRIu64 " -> cpu%u, " 644 "nrdy=%ld, avg=%ld\n", CPU->id, t->tid, 645 CPU->id, atomic_get(&CPU->nrdy), 646 646 atomic_get(&nrdy) / config.cpu_active); 647 647 #endif
Note:
See TracChangeset
for help on using the changeset viewer.