Changeset 4c61e60 in mainline for init/init.c


Ignore:
Timestamp:
2006-03-19T19:42:38Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
06b0d112
Parents:
7048773
Message:

Adapt userspace API to conform to kernel api.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    r7048773 r4c61e60  
    113113        int retval;
    114114
     115        printf("Pinging\n");
    115116        retval = ipc_call_sync(PHONE_NS, NS_PING, 0xbeef,&result);
    116117        printf("Retval: %d - received: %P\n", retval, result);
    117118}
    118119
    119 static void got_answer(void *private, int retval, ipc_data_t *data)
     120static void got_answer(void *private, int retval, ipc_call_t *data)
    120121{
    121122        printf("Retval: %d...%s...%zX, %zX\n", retval, private,
     
    149150
    150151
    151 static void got_answer_2(void *private, int retval, ipc_data_t *data)
     152static void got_answer_2(void *private, int retval, ipc_call_t *data)
    152153{
    153154        printf("Pong\n");
     
    156157{
    157158        int res;
    158         unsigned long long taskid;
     159        ipcarg_t phonead;
    159160        ipc_callid_t callid;
    160161        ipc_call_t data;
     
    162163
    163164        printf("Asking 0 to connect to me...\n");
    164         res = ipc_connect_to_me(0, 1, 2, &taskid);
    165         printf("Result: %d - taskid: %llu\n", res, taskid);
     165        res = ipc_connect_to_me(0, 1, 2, &phonead);
     166        printf("Result: %d - phonead: %llu\n", res, phonead);
    166167        for (i=0; i < 100; i++) {
    167168                printf("----------------\n");
     
    179180        int res;
    180181        ipcarg_t result;
     182        int phoneid;
    181183
    182184        printf("Starting connect...\n");
     
    253255//      test_connection_ipc();
    254256//      test_hangup();
    255         test_slam();
    256 
    257 //      if ((tid = thread_create(utest, NULL, "utest") != -1)) {
    258 //              printf("Created thread tid=%d\n", tid);
    259 //      }
     257//      test_slam();
     258
     259        if ((tid = thread_create(utest, NULL, "utest") != -1)) {
     260                printf("Created thread tid=%d\n", tid);
     261        }
    260262        return 0;
    261263}
Note: See TracChangeset for help on using the changeset viewer.