diff options
author | dzwdz | 2024-07-27 19:59:37 +0200 |
---|---|---|
committer | dzwdz | 2024-07-27 20:00:29 +0200 |
commit | fe6fbfa07aa8326926049cf62560d940bc7305c0 (patch) | |
tree | e97060cb23c8a5a227fe615b97d9213d5fc2ad1e /src/kernel/vfs/request.c | |
parent | 58514d351e1f0e8871f534422cf025109ddbb844 (diff) |
kernel: don't use pointer types for registers, add proc_savereturn
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r-- | src/kernel/vfs/request.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index 3f6fda7..69a007e 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -115,7 +115,7 @@ vfsreq_finish(VfsReq *req, char __user *stored, long ret, int flags, Proc *handl if (req->caller) { assert(req->caller->state == PS_WAITS4FS); - regs_savereturn(&req->caller->regs, ret); + proc_savereturn(req->caller, ret); proc_setstate(req->caller, PS_RUNNING); } kfree(req); @@ -181,7 +181,7 @@ vfsback_useraccept(VfsReq *req) if (hid < 0) panic_unimplemented(); h->req = req; proc_setstate(handler, PS_RUNNING); - regs_savereturn(&handler->regs, hid); + proc_savereturn(handler, hid); req->backend->user.handler = NULL; } @@ -210,7 +210,7 @@ vfsback_userdown(VfsBackend *b) Proc *p = b->user.handler; b->user.handler = NULL; assert(p->state == PS_WAITS4REQUEST); - regs_savereturn(&p->regs, -EPIPE); + proc_savereturn(p, -EPIPE); proc_setstate(p, PS_RUNNING); } } |