- Timestamp:
- 2006-05-14T17:17:35Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 52352ec
- Parents:
- 8071af9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ns/ns.c
r8071af9f r8a568e3 32 32 ipc_call_t call; 33 33 ipc_callid_t callid; 34 char *as; 34 35 35 36 ipcarg_t retval, arg1, arg2; … … 42 43 printf("NS:Call phone=%lX..", call.phoneid); 43 44 switch (IPC_GET_METHOD(call)) { 45 case IPC_M_AS_SEND: 46 as = (char *)IPC_GET_ARG2(call); 47 printf("Received as: %P, size:%d\n", as, IPC_GET_ARG3(call)); 48 retval = ipc_answer(callid, 0,(sysarg_t)(1024*1024), 0); 49 if (!retval) { 50 printf("Reading shared memory..."); 51 printf("Text: %s", as); 52 } else 53 printf("Failed answer: %d\n", retval); 54 continue; 55 break; 44 56 case IPC_M_INTERRUPT: 45 57 printf("GOT INTERRUPT: %c\n", IPC_GET_ARG2(call));
Note:
See TracChangeset
for help on using the changeset viewer.