Changeset f619ec11 in mainline for uspace/ipcc/ipcc.c
- Timestamp:
- 2007-02-03T21:26:54Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cf5ddf6
- Parents:
- 80bcaed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/ipcc/ipcc.c
r80bcaed rf619ec11 76 76 default: 77 77 printf("Received message from %P: %X\n", phonehash,callid); 78 for (i =0; i < 1024; i++)78 for (i = 0; i < 1024; i++) 79 79 if (!callids[i]) { 80 80 callids[i] = callid; … … 112 112 113 113 cnt = 0; 114 for (i =0;i < 50;i++) {114 for (i = 0;i < 50; i++) { 115 115 if (callids[i]) { 116 116 printf("%d: %P\n", cnt, callids[i]); … … 128 128 cnt = c - '0' + 1; 129 129 130 for (i =0;cnt;i++)130 for (i = 0; cnt; i++) 131 131 if (callids[i]) 132 132 cnt--; … … 213 213 } 214 214 215 216 217 215 int main(void) 218 216 { … … 227 225 printf("***********IPC Tester***********\n"); 228 226 printf("********************************\n"); 229 230 227 231 228 async_set_client_connection(client_connection); 232 229 233 for (i =TEST_START;i < TEST_START+10;i++) {230 for (i = TEST_START; i < TEST_START + 10; i++) { 234 231 res = ipc_connect_to_me(PHONE_NS, i, 0, &phonead); 235 232 if (!res) … … 263 260 break; 264 261 case 'j': 262 printf("Entering infinite loop\n"); 265 263 while (1) 266 264 ; 265 break; 267 266 case 'p': 268 267 printf("Doing page fault\n"); 269 268 *((char *)0) = 1; 270 269 printf("done\n"); 270 break; 271 271 case 'u': 272 272 var1=*( (int *) ( ( (char *)(&var) ) + 1 ) );
Note:
See TracChangeset
for help on using the changeset viewer.