Rev 3150 | Rev 3686 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3150 | Rev 3168 | ||
---|---|---|---|
Line 46... | Line 46... | ||
46 | #include <fibril.h> |
46 | #include <fibril.h> |
47 | #include <io/stream.h> |
47 | #include <io/stream.h> |
48 | #include <ipc/ipc.h> |
48 | #include <ipc/ipc.h> |
49 | #include <async.h> |
49 | #include <async.h> |
50 | #include <as.h> |
50 | #include <as.h> |
- | 51 | #include <loader/pcb.h> |
|
51 | 52 | ||
52 | extern char _heap; |
53 | extern char _heap; |
53 | 54 | ||
54 | void _exit(int status) |
55 | void _exit(int status) |
55 | { |
56 | { |
56 | thread_exit(status); |
57 | thread_exit(status); |
57 | } |
58 | } |
58 | 59 | ||
59 | void __main(void) |
60 | void __main(void *pcb_ptr) |
60 | { |
61 | { |
61 | fibril_t *f; |
62 | fibril_t *f; |
62 | 63 | ||
63 | (void) as_area_create(&_heap, 1, AS_AREA_WRITE | AS_AREA_READ); |
64 | (void) as_area_create(&_heap, 1, AS_AREA_WRITE | AS_AREA_READ); |
64 | _async_init(); |
65 | _async_init(); |