Changeset 6d9c49a in mainline for generic/src/proc/task.c


Ignore:
Timestamp:
2006-03-13T19:39:30Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
45d6add
Parents:
78a95d6f
Message:

Added kernel IPC functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/task.c

    r78a95d6f r6d9c49a  
    3636#include <panic.h>
    3737#include <adt/list.h>
     38#include <ipc/ipc.h>
     39#include <memstr.h>
    3840
    3941SPINLOCK_INITIALIZE(tasks_lock);
     
    7173        list_initialize(&ta->tasks_link);
    7274        ta->as = as;
     75
     76        ipc_answerbox_init(&ta->answerbox);
     77        memsetb((__address)&ta->phones, sizeof(ta->phones[0])*IPC_MAX_PHONES, 0);
     78        if (ipc_central_box)
     79                ipc_phone_init(&ta->phones[0], ipc_central_box);
    7380       
    7481        ipl = interrupts_disable();
Note: See TracChangeset for help on using the changeset viewer.