Subversion Repositories HelenOS

Rev

Rev 2745 | Rev 2800 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2745 Rev 2787
Line 55... Line 55...
55
#include <print.h>
55
#include <print.h>
56
#include <lib/elf.h>
56
#include <lib/elf.h>
57
#include <errno.h>
57
#include <errno.h>
58
#include <func.h>
58
#include <func.h>
59
#include <syscall/copy.h>
59
#include <syscall/copy.h>
-
 
60
#include <tdebug/tdebug.h>
60
 
61
 
61
#ifndef LOADED_PROG_STACK_PAGES_NO
62
#ifndef LOADED_PROG_STACK_PAGES_NO
62
#define LOADED_PROG_STACK_PAGES_NO 1
63
#define LOADED_PROG_STACK_PAGES_NO 1
63
#endif
64
#endif
64
 
65
 
Line 168... Line 169...
168
    atomic_set(&ta->lifecount, 0);
169
    atomic_set(&ta->lifecount, 0);
169
    ta->context = CONTEXT;
170
    ta->context = CONTEXT;
170
 
171
 
171
    ta->capabilities = 0;
172
    ta->capabilities = 0;
172
    ta->cycles = 0;
173
    ta->cycles = 0;
-
 
174
 
-
 
175
    /* init tdebug related stuff */
-
 
176
    tdebug_task_init(ta);
173
   
177
 
174
    ipc_answerbox_init(&ta->answerbox);
178
    ipc_answerbox_init(&ta->answerbox);
175
    for (i = 0; i < IPC_MAX_PHONES; i++)
179
    for (i = 0; i < IPC_MAX_PHONES; i++)
176
        ipc_phone_init(&ta->phones[i]);
180
        ipc_phone_init(&ta->phones[i]);
177
    if ((ipc_phone_0) && (context_check(ipc_phone_0->task->context,
181
    if ((ipc_phone_0) && (context_check(ipc_phone_0->task->context,
178
        ta->context)))
182
        ta->context)))