Subversion Repositories HelenOS-historic

Rev

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

Rev 1073 Rev 1079
Line 35... Line 35...
35
#include <thread.h>
35
#include <thread.h>
36
 
36
 
37
extern void utest(void *arg);
37
extern void utest(void *arg);
38
void utest(void *arg)
38
void utest(void *arg)
39
{
39
{
40
//  printf("Uspace thread created.\n");
40
//  printf("Uspace thread started.\n");
41
    for (;;)
41
    for (;;)
42
        ;
42
        ;
43
}
43
}
44
 
44
 
45
static void test_printf(void)
45
static void test_printf(void)
Line 187... Line 187...
187
}
187
}
188
 
188
 
189
int main(int argc, char *argv[])
189
int main(int argc, char *argv[])
190
{
190
{
191
    int tid;
191
    int tid;
192
    char *stack;
-
 
193
    version_print();
192
    version_print();
194
 
193
 
195
/*  test_printf(); */
194
/*  test_printf(); */
196
//  test_ping();
195
//  test_ping();
197
//  test_async_ipc();
196
//  test_async_ipc();
198
//  test_advanced_ipc();
197
//  test_advanced_ipc();
199
    test_connection_ipc();
198
    test_connection_ipc();
200
   
199
   
201
    stack = (char *) malloc(getpagesize());
-
 
202
    if (!stack) {
-
 
203
        printf("Malloc failed.\n");
-
 
204
    } else {
-
 
205
        if ((tid = thread_create(utest, NULL, stack, "utest") != -1)) {
200
    if ((tid = thread_create(utest, NULL, "utest") != -1)) {
206
            printf("Created thread tid=%d\n", tid);
201
        printf("Created thread tid=%d\n", tid);
207
        }
-
 
208
    }
202
    }
209
   
203
   
210
    return 0;
204
    return 0;
211
}
205
}