Changeset 13dbaa8c in mainline for kernel/generic/src/ipc/ops/debug.c
- Timestamp:
- 2012-08-21T21:37:54Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b1e6269
- Parents:
- 1b186ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/debug.c
r1b186ed r13dbaa8c 36 36 #include <ipc/ipc.h> 37 37 #include <udebug/udebug_ipc.h> 38 #include <syscall/copy.h> 39 #include <abi/errno.h> 38 40 39 41 static int request_process(call_t *call, answerbox_t *box) 40 42 { 41 43 return -1; 44 } 45 46 static int answer_process(call_t *answer) 47 { 48 if (answer->buffer) { 49 uintptr_t dst = IPC_GET_ARG1(answer->data); 50 size_t size = IPC_GET_ARG2(answer->data); 51 int rc; 52 53 rc = copy_to_uspace((void *) dst, answer->buffer, size); 54 if (rc) 55 IPC_SET_RETVAL(answer->data, rc); 56 } 57 58 return EOK; 42 59 } 43 60 … … 50 67 .request_process = request_process, 51 68 .answer_preprocess = null_answer_preprocess, 52 .answer_process = null_answer_process,69 .answer_process = answer_process, 53 70 }; 54 71
Note:
See TracChangeset
for help on using the changeset viewer.