163,6 → 163,7 |
thread_t *t; |
task_t *ta; |
void *uspace_buffer; |
unative_t to_copy; |
int rc; |
ipl_t ipl; |
unative_t buffer[6]; |
202,8 → 203,10 |
/* Now copy to userspace */ |
|
uspace_buffer = (void *)IPC_GET_ARG3(call->data); |
to_copy = IPC_GET_ARG4(call->data); |
if (to_copy > 6 * sizeof(unative_t)) to_copy = 6 * sizeof(unative_t); |
|
rc = copy_to_uspace(uspace_buffer, buffer, 6 * sizeof(unative_t)); |
rc = copy_to_uspace(uspace_buffer, buffer, to_copy); |
if (rc != 0) { |
spinlock_unlock(&ta->lock); |
klog_printf("debug_args_read() - copy failed"); |
210,6 → 213,8 |
return rc; |
} |
|
IPC_SET_ARG1(call->data, to_copy); |
|
klog_printf("debug_args_read() done"); |
return 1; /* actually need becksend with retval 0 */ |
} |