Rev 2877 | Rev 2880 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2877 | Rev 2878 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | */ |
3 | */ |
4 | /** @file |
4 | /** @file |
5 | */ |
5 | */ |
6 | 6 | ||
7 | #include <stdio.h> |
7 | #include <stdio.h> |
- | 8 | #include <stdlib.h> |
|
8 | #include <unistd.h> |
9 | #include <unistd.h> |
9 | #include <syscall.h> |
10 | #include <syscall.h> |
10 | #include <ipc/ipc.h> |
11 | #include <ipc/ipc.h> |
11 | #include <fibril.h> |
12 | #include <fibril.h> |
12 | #include <errno.h> |
13 | #include <errno.h> |
13 | #include <udebug.h> |
14 | #include <udebug.h> |
14 | #include <async.h> |
15 | #include <async.h> |
15 | 16 | ||
- | 17 | #include "proto.h" |
|
- | 18 | #include <ipc/services.h> |
|
- | 19 | ||
16 | #include "syscalls.h" |
20 | #include "syscalls.h" |
17 | #include "ipcp.h" |
21 | #include "ipcp.h" |
18 | #include "errors.h" |
22 | #include "errors.h" |
19 | #include "debug_api.h" |
23 | #include "debug_api.h" |
20 | 24 | ||
Line 368... | Line 372... | ||
368 | 372 | ||
369 | printf("done\n"); |
373 | printf("done\n"); |
370 | return; |
374 | return; |
371 | } |
375 | } |
372 | 376 | ||
373 | int main(void) |
377 | static void main_init(void) |
374 | { |
378 | { |
- | 379 | proto_t *p; |
|
- | 380 | ||
375 | next_thread_id = 1; |
381 | next_thread_id = 1; |
376 | 382 | ||
- | 383 | proto_init(); |
|
- | 384 | ||
- | 385 | p = malloc(sizeof(proto_t)); |
|
- | 386 | p->name = "vfs"; |
|
- | 387 | proto_register(SERVICE_VFS, p); |
|
- | 388 | } |
|
- | 389 | ||
- | 390 | int main(void) |
|
- | 391 | { |
|
- | 392 | main_init(); |
|
- | 393 | ||
377 | while (1) { |
394 | while (1) { |
378 | trace_active_task(); |
395 | trace_active_task(); |
379 | } |
396 | } |
380 | } |
397 | } |
381 | 398 |