Rev 2815 | Rev 2837 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2815 | Rev 2836 | ||
|---|---|---|---|
| Line 657... | Line 657... | ||
| 657 | 657 | ||
| 658 | ipc_phone_connect(&TASK->phones[newphid], &ta->kernel_box); |
658 | ipc_phone_connect(&TASK->phones[newphid], &ta->kernel_box); |
| 659 | spinlock_unlock(&ta->lock); |
659 | spinlock_unlock(&ta->lock); |
| 660 | 660 | ||
| 661 | /* FIXME: locking! */ |
661 | /* FIXME: locking! */ |
| - | 662 | if (ta->kb_thread == NULL) { |
|
| 662 | ta->kb_thread = thread_create(kbox_thread_proc, |
663 | ta->kb_thread = thread_create(kbox_thread_proc, |
| 663 | NULL, ta, 0, "kbox", false); |
664 | NULL, ta, 0, "kbox", false); |
| 664 | if (!ta->kb_thread) |
665 | if (!ta->kb_thread) |
| 665 | return ENOMEM; |
666 | return ENOMEM; |
| 666 | 667 | ||
| 667 | thread_ready(ta->kb_thread); |
668 | thread_ready(ta->kb_thread); |
| - | 669 | } |
|
| 668 | 670 | ||
| 669 | return newphid; |
671 | return newphid; |
| 670 | } |
672 | } |
| 671 | 673 | ||
| 672 | /** @} |
674 | /** @} |