From 6caac6e940ab79960b1c1ca0e5ed8f28aa49a3a9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 20 Nov 2021 14:48:26 +0100 Subject: kernel: fs_wait returns a success val; the op type is put in the struct --- src/kernel/vfs/request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/vfs/request.c') diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index f431eac..45a7ae7 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -63,12 +63,13 @@ _Noreturn void vfs_request_pass2handler(struct vfs_request *req) { res.capacity = req->output.len; res.id = req->id; res.offset = req->offset; + res.op = req->type; if (!virt_cpy_to(handler->pages, handler->awaited_req.res, &res, sizeof res)) goto fail; // can't copy response struct - regs_savereturn(&handler->regs, req->type); + regs_savereturn(&handler->regs, 0); process_switch(handler); fail: panic_unimplemented(); // TODO -- cgit v1.2.3