diff options
-rw-r--r-- | src/syscall.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syscall.zig b/src/syscall.zig index 79959cd..763e20c 100644 --- a/src/syscall.zig +++ b/src/syscall.zig @@ -177,7 +177,10 @@ fn pass(proc: *const process.Info, trap_frame: *const TrapFrame) !void { const bytes = bytes_ptr[0..len]; const copy = try channel.allocator().alloc(u8, bytes.len); + paging.setUserMemoryAccess(true); @memcpy(copy, bytes); + paging.setUserMemoryAccess(false); + try channel.pass(proc.id, id, receiver, identify, copy); } |