Rev 2809 | Rev 2812 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2809 | Rev 2810 | ||
---|---|---|---|
Line 395... | Line 395... | ||
395 | return ENOENT; |
395 | return ENOENT; |
396 | } |
396 | } |
397 | 397 | ||
398 | uspace_buffer = (void *)IPC_GET_ARG2(call->data); |
398 | uspace_buffer = (void *)IPC_GET_ARG2(call->data); |
399 | to_copy = IPC_GET_ARG3(call->data); |
399 | to_copy = IPC_GET_ARG3(call->data); |
400 | if (to_copy > 6) to_copy = 6; |
400 | if (to_copy > 6 * sizeof(unative_t)) to_copy = 6 * sizeof(unative_t); |
401 | 401 | ||
402 | rc = copy_to_uspace(uspace_buffer, t->syscall_args, to_copy); |
402 | rc = copy_to_uspace(uspace_buffer, t->syscall_args, to_copy); |
403 | if (rc != 0) { |
403 | if (rc != 0) { |
404 | spinlock_unlock(&ta->lock); |
404 | spinlock_unlock(&ta->lock); |
405 | klog_printf("debug_args_read() - copy failed"); |
405 | klog_printf("debug_args_read() - copy failed"); |