Changeset 436a0a5 in mainline for kernel/generic/src/udebug/udebug_ipc.c
- Timestamp:
- 2018-11-09T22:04:01Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95d45482
- Parents:
- 88e43bc (diff), abf6c01 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug_ipc.c
r88e43bc r436a0a5 266 266 size_t data_size; 267 267 size_t buf_size; 268 void*data;268 as_area_info_t *data; 269 269 270 270 uspace_addr = IPC_GET_ARG2(call->data); /* Destination address */ … … 274 274 * Read area list. 275 275 */ 276 as_get_area_info(AS, (as_area_info_t **) &data, &data_size); 276 data = as_get_area_info(AS, &data_size); 277 if (!data) { 278 IPC_SET_RETVAL(call->data, ENOMEM); 279 ipc_answer(&TASK->kb.box, call); 280 return; 281 } 277 282 278 283 /* Copy MAX(buf_size, data_size) bytes */ … … 297 302 298 303 IPC_SET_ARG3(call->data, data_size); 299 call->buffer = data;304 call->buffer = (uint8_t *) data; 300 305 301 306 ipc_answer(&TASK->kb.box, call);
Note:
See TracChangeset
for help on using the changeset viewer.