Subversion Repositories HelenOS-historic

Rev

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

Rev 1392 Rev 1406
Line 32... Line 32...
32
#include <malloc.h>
32
#include <malloc.h>
33
#include <psthread.h>
33
#include <psthread.h>
34
#include <io/stream.h>
34
#include <io/stream.h>
35
#include <ipc/ipc.h>
35
#include <ipc/ipc.h>
36
#include <async.h>
36
#include <async.h>
-
 
37
#include <as.h>
-
 
38
 
-
 
39
extern char _heap;
37
 
40
 
38
void _exit(int status) {
41
void _exit(int status) {
39
    thread_exit(status);
42
    thread_exit(status);
40
}
43
}
41
 
44
 
42
void __main(void) {
45
void __main(void) {
43
    psthread_data_t *pt;
46
    psthread_data_t *pt;
44
 
47
 
-
 
48
    (void) as_area_create(&_heap, 1, AS_AREA_WRITE | AS_AREA_READ);
45
    _async_init();
49
    _async_init();
46
    pt = psthread_setup();
50
    pt = psthread_setup();
47
    __tcb_set(pt->tcb);
51
    __tcb_set(pt->tcb);
48
}
52
}
49
 
53