- Timestamp:
- 2006-05-16T09:30:42Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ec153a0
- Parents:
- 51d6f80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ns/ns.c
r51d6f80 r250717cc 72 72 } hashed_service_t; 73 73 74 /*75 irq_cmd_t msim_cmds[1] = {76 { CMD_MEM_READ_1, (void *)0xB0000000, 0 }77 };78 79 irq_code_t msim_kbd = {80 1,81 msim_cmds82 };83 */84 /*85 irq_cmd_t i8042_cmds[1] = {86 { CMD_PORT_READ_1, (void *)0x60, 0 }87 };88 89 irq_code_t i8042_kbd = {90 1,91 i8042_cmds92 };93 */94 95 96 74 int static ping_phone; 97 75 … … 110 88 return ENOMEM; 111 89 } 112 113 114 // ipc_register_irq(2, &msim_kbd); 115 // ipc_register_irq(1, &i8042_kbd); 90 116 91 while (1) { 117 92 callid = ipc_wait_for_call(&call, 0); 118 printf("NS: Call in_phone_hash=%lX...", call.in_phone_hash);93 // printf("NS: Call in_phone_hash=%lX...", call.in_phone_hash); 119 94 switch (IPC_GET_METHOD(call)) { 120 95 case IPC_M_AS_SEND: 121 96 as = (char *)IPC_GET_ARG2(call); 122 97 printf("Received as: %P, size:%d\n", as, IPC_GET_ARG3(call)); 123 retval = ipc_answer (callid, 0,(sysarg_t)(1024*1024), 0);98 retval = ipc_answer_fast(callid, 0,(sysarg_t)(1024*1024), 0); 124 99 if (!retval) { 125 100 printf("Reading shared memory..."); … … 171 146 } 172 147 if (! (callid & IPC_CALLID_NOTIFICATION)) { 173 printf("Answering.\n");174 ipc_answer (callid, retval, arg1, arg2);148 // printf("Answering.\n"); 149 ipc_answer_fast(callid, retval, arg1, arg2); 175 150 } 176 151 } … … 228 203 hlp = hash_table_find(&ns_hash_table, keys); 229 204 if (!hlp) { 230 printf("Service %d not registered.\n", service);205 // printf("Service %d not registered.\n", service); 231 206 return ENOENT; 232 207 }
Note:
See TracChangeset
for help on using the changeset viewer.