Rev 965 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 965 | Rev 998 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | printf("Name service started.\n"); |
43 | printf("Name service started.\n"); |
44 | while (1) { |
44 | while (1) { |
45 | call = ipc_wait_for_call(&ns_answerbox, 0); |
45 | call = ipc_wait_for_call(&ns_answerbox, 0); |
46 | switch (IPC_GET_METHOD(call->data)) { |
46 | switch (IPC_GET_METHOD(call->data)) { |
47 | case NS_PING: |
47 | case NS_PING: |
48 | printf("Ping.\n"); |
48 | printf("Ping - %X, %X\n", IPC_GET_ARG1(call->data), |
- | 49 | IPC_GET_ARG2(call->data)); |
|
49 | IPC_SET_RETVAL(call->data, 0); |
50 | IPC_SET_RETVAL(call->data, 0); |
- | 51 | IPC_SET_ARG1(call->data, 0xdeaddead); |
|
- | 52 | IPC_SET_ARG2(call->data, 0xdeaddea2); |
|
50 | break; |
53 | break; |
51 | default: |
54 | default: |
52 | printf("Unsupported name service call.\n"); |
55 | printf("Unsupported name service call.\n"); |
53 | IPC_SET_RETVAL(call->data, -1); |
56 | IPC_SET_RETVAL(call->data, -1); |
54 | } |
57 | } |