Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1079 → Rev 1078

/uspace/trunk/init/init.c
37,7 → 37,7
extern void utest(void *arg);
void utest(void *arg)
{
// printf("Uspace thread started.\n");
// printf("Uspace thread created.\n");
for (;;)
;
}
189,6 → 189,7
int main(int argc, char *argv[])
{
int tid;
char *stack;
version_print();
 
/* test_printf(); */
197,8 → 198,13
// test_advanced_ipc();
test_connection_ipc();
if ((tid = thread_create(utest, NULL, "utest") != -1)) {
printf("Created thread tid=%d\n", tid);
stack = (char *) malloc(getpagesize());
if (!stack) {
printf("Malloc failed.\n");
} else {
if ((tid = thread_create(utest, NULL, stack, "utest") != -1)) {
printf("Created thread tid=%d\n", tid);
}
}
return 0;