Changeset 86d05fae in mainline for init/init.c


Ignore:
Timestamp:
2006-03-24T11:05:41Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4f2c821
Parents:
a71d9af9
Message:

TLS and pseudo thread support for ia64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    ra71d9af9 r86d05fae  
    275275        version_print();
    276276
    277 /*      test_printf(); */
     277//      test_printf();
    278278//      test_ping();
    279279//      test_async_ipc();
     
    289289                printf("Futex failed.\n");
    290290
    291         if ((tid = thread_create(utest, NULL, "utest") != -1)) {
     291        if (futex_down(&ftx) < 0)
     292                printf("Futex failed.\n");
     293
     294        if ((tid = thread_create(utest, NULL, "utest")) != -1) {
    292295                printf("Created thread tid=%d\n", tid);
    293296        }
    294297
    295         if (futex_down(&ftx) < 0)
    296                 printf("Futex failed.\n");
    297 
    298         if ((tid = thread_create(utest, NULL, "utest") != -1)) {
     298        if ((tid = thread_create(utest, NULL, "utest")) != -1) {
    299299                printf("Created thread tid=%d\n", tid);
    300300        }
     
    302302        int i;
    303303       
    304         for (i = 0; i < 10000000; i++)
     304        for (i = 0; i < 50000000; i++)
    305305                ;
    306306               
     
    309309
    310310        ptid = psthread_create(ptest, NULL);
    311         printf("Main thread-1\n");
    312         ps_preempt();
    313         printf("Main thread-2\n");
     311        printf("main thread-1\n");
     312        ps_preempt();
     313        printf("main thread-2\n");
    314314        ps_preempt();
    315315        printf("main thread-3\n");
Note: See TracChangeset for help on using the changeset viewer.