Changeset 4c61e60 in mainline for init/init.c
- Timestamp:
- 2006-03-19T19:42:38Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06b0d112
- Parents:
- 7048773
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
init/init.c
r7048773 r4c61e60 113 113 int retval; 114 114 115 printf("Pinging\n"); 115 116 retval = ipc_call_sync(PHONE_NS, NS_PING, 0xbeef,&result); 116 117 printf("Retval: %d - received: %P\n", retval, result); 117 118 } 118 119 119 static void got_answer(void *private, int retval, ipc_ data_t *data)120 static void got_answer(void *private, int retval, ipc_call_t *data) 120 121 { 121 122 printf("Retval: %d...%s...%zX, %zX\n", retval, private, … … 149 150 150 151 151 static void got_answer_2(void *private, int retval, ipc_ data_t *data)152 static void got_answer_2(void *private, int retval, ipc_call_t *data) 152 153 { 153 154 printf("Pong\n"); … … 156 157 { 157 158 int res; 158 unsigned long long taskid;159 ipcarg_t phonead; 159 160 ipc_callid_t callid; 160 161 ipc_call_t data; … … 162 163 163 164 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); 166 167 for (i=0; i < 100; i++) { 167 168 printf("----------------\n"); … … 179 180 int res; 180 181 ipcarg_t result; 182 int phoneid; 181 183 182 184 printf("Starting connect...\n"); … … 253 255 // test_connection_ipc(); 254 256 // 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 } 260 262 return 0; 261 263 }
Note:
See TracChangeset
for help on using the changeset viewer.