diff options
Diffstat (limited to 'src/kernel/ring.c')
-rw-r--r-- | src/kernel/ring.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/ring.c b/src/kernel/ring.c index e25024a..6c03333 100644 --- a/src/kernel/ring.c +++ b/src/kernel/ring.c @@ -1,11 +1,9 @@ #include <kernel/mem/virt.h> #include <kernel/ring.h> -size_t ring_to_virt(ring_t *r, struct pagedir *pages, void __user *ubuf, size_t max) { +size_t ring_to_virt(ring_t *r, struct process *proc, void __user *ubuf, size_t max) { char tmp[32]; if (max > sizeof tmp) max = sizeof tmp; max = ring_get(r, tmp, max); - // TODO decide how write errors should be handled - virt_cpy_to(pages, ubuf, tmp, max); - return max; + return pcpy_to(proc, ubuf, tmp, max); } |