Rev 2787 | Rev 2800 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2787 | Rev 2799 | ||
---|---|---|---|
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> |
- | |
61 | 60 | ||
62 | #ifndef LOADED_PROG_STACK_PAGES_NO |
61 | #ifndef LOADED_PROG_STACK_PAGES_NO |
63 | #define LOADED_PROG_STACK_PAGES_NO 1 |
62 | #define LOADED_PROG_STACK_PAGES_NO 1 |
64 | #endif |
63 | #endif |
65 | 64 | ||
Line 169... | Line 168... | ||
169 | atomic_set(&ta->lifecount, 0); |
168 | atomic_set(&ta->lifecount, 0); |
170 | ta->context = CONTEXT; |
169 | ta->context = CONTEXT; |
171 | 170 | ||
172 | ta->capabilities = 0; |
171 | ta->capabilities = 0; |
173 | ta->cycles = 0; |
172 | ta->cycles = 0; |
174 | - | ||
175 | /* init tdebug related stuff */ |
- | |
176 | tdebug_task_init(ta); |
- | |
177 | 173 | ||
178 | ipc_answerbox_init(&ta->answerbox); |
174 | ipc_answerbox_init(&ta->answerbox); |
179 | for (i = 0; i < IPC_MAX_PHONES; i++) |
175 | for (i = 0; i < IPC_MAX_PHONES; i++) |
180 | ipc_phone_init(&ta->phones[i]); |
176 | ipc_phone_init(&ta->phones[i]); |
181 | if ((ipc_phone_0) && (context_check(ipc_phone_0->task->context, |
177 | if ((ipc_phone_0) && (context_check(ipc_phone_0->task->context, |
182 | ta->context))) |
178 | ta->context))) |