Changeset e5a1f82f in mainline for init/init.c


Ignore:
Timestamp:
2006-03-17T18:09:15Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
81e55099
Parents:
11a4fbf
Message:

Improved uspace threads (uspace).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    r11a4fbf re5a1f82f  
    3838void utest(void *arg)
    3939{
    40 //      printf("Uspace thread created.\n");
     40//      printf("Uspace thread started.\n");
    4141        for (;;)
    4242                ;
     
    190190{
    191191        int tid;
    192         char *stack;
    193192        version_print();
    194193
     
    199198        test_connection_ipc();
    200199       
    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)) {
    206                         printf("Created thread tid=%d\n", tid);
    207                 }
     200        if ((tid = thread_create(utest, NULL, "utest") != -1)) {
     201                printf("Created thread tid=%d\n", tid);
    208202        }
    209203       
Note: See TracChangeset for help on using the changeset viewer.