Changes in kernel/generic/src/proc/task.c [55b77d9:5bcf1f9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
r55b77d9 r5bcf1f9 155 155 mutex_initialize(&task->futexes_lock, MUTEX_PASSIVE); 156 156 157 list_initialize(&task->th reads);158 list_initialize(&task->sync_box es);157 list_initialize(&task->th_head); 158 list_initialize(&task->sync_box_head); 159 159 160 160 ipc_answerbox_init(&task->answerbox, task); … … 190 190 str_cpy(task->name, TASK_NAME_BUFLEN, name); 191 191 192 task->cont ainer = CONTAINER;192 task->context = CONTEXT; 193 193 task->capabilities = 0; 194 194 task->ucycles = 0; … … 211 211 212 212 if ((ipc_phone_0) && 213 (cont ainer_check(ipc_phone_0->task->container, task->container)))213 (context_check(ipc_phone_0->task->context, task->context))) 214 214 ipc_phone_connect(&task->phones[0], ipc_phone_0); 215 215 … … 435 435 436 436 /* Current values of threads */ 437 list_foreach(task->threads, cur) { 437 link_t *cur; 438 for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) { 438 439 thread_t *thread = list_get_instance(cur, thread_t, th_link); 439 440 … … 467 468 */ 468 469 469 list_foreach(task->threads, cur) { 470 link_t *cur; 471 for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) { 470 472 thread_t *thread = list_get_instance(cur, thread_t, th_link); 471 473 bool sleeping = false; … … 532 534 */ 533 535 if (notify) { 534 /* Notify the subscriber that a fault occurred. */ 535 if (event_notify_3(EVENT_FAULT, false, LOWER32(TASK->taskid), 536 UPPER32(TASK->taskid), (sysarg_t) THREAD) == EOK) { 536 if (event_is_subscribed(EVENT_FAULT)) { 537 /* Notify the subscriber that a fault occurred. */ 538 event_notify_3(EVENT_FAULT, LOWER32(TASK->taskid), 539 UPPER32(TASK->taskid), (sysarg_t) THREAD); 540 537 541 #ifdef CONFIG_UDEBUG 538 542 /* Wait for a debugging session. */ … … 582 586 printf("%-8" PRIu64 " %-14s %-5" PRIu32 " %10p %10p" 583 587 " %9" PRIu64 "%c %9" PRIu64 "%c\n", task->taskid, 584 task->name, task->cont ainer, task, task->as,588 task->name, task->context, task, task->as, 585 589 ucycles, usuffix, kcycles, ksuffix); 586 590 #endif … … 593 597 else 594 598 printf("%-8" PRIu64 " %-14s %-5" PRIu32 " %18p %18p\n", 595 task->taskid, task->name, task->cont ainer, task, task->as);599 task->taskid, task->name, task->context, task, task->as); 596 600 #endif 597 601 … … 623 627 printf("[id ] [threads] [calls] [callee\n"); 624 628 else 625 printf("[id ] [name ] [ct n] [address ] [as ]"629 printf("[id ] [name ] [ctx] [address ] [as ]" 626 630 " [ucycles ] [kcycles ]\n"); 627 631 #endif … … 632 636 " [callee\n"); 633 637 else 634 printf("[id ] [name ] [ct n] [address ]"638 printf("[id ] [name ] [ctx] [address ]" 635 639 " [as ]\n"); 636 640 #endif
Note:
See TracChangeset
for help on using the changeset viewer.