From 8dc3d7df4c73b320fa84b2e871732276a7c6e20f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 7 Jul 2022 18:34:47 +0200 Subject: shared: add a flags argument to _syscall_fs_respond --- src/init/driver/ps2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/init/driver/ps2.c') diff --git a/src/init/driver/ps2.c b/src/init/driver/ps2.c index 5623b98..d01c522 100644 --- a/src/init/driver/ps2.c +++ b/src/init/driver/ps2.c @@ -56,10 +56,10 @@ static void main_loop(void) { switch (res.op) { case VFSOP_OPEN: if (res.flags & OPEN_CREATE) { - _syscall_fs_respond(NULL, -1); + _syscall_fs_respond(NULL, -1, 0); break; } - _syscall_fs_respond(NULL, 1); + _syscall_fs_respond(NULL, 1, 0); break; case VFSOP_READ: @@ -71,11 +71,11 @@ static void main_loop(void) { parse_scancode(buf[i]); } ret = ring_get((void*)&backlog, buf, res.capacity); - _syscall_fs_respond(buf, ret); + _syscall_fs_respond(buf, ret, 0); break; default: - _syscall_fs_respond(NULL, -1); + _syscall_fs_respond(NULL, -1, 0); break; } } -- cgit v1.2.3