diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-22 13:19:50 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-22 13:19:50 +0300 |
| commit | 66b39eb7ce9605cbb70defdca7f0eb144855ddcd (patch) | |
| tree | 702bd65c46591052f40987c848b664a84057f7e7 /src/uapi/proc.c | |
| parent | 4168cca8124acdbd1866eb87810efe1cfe16903c (diff) | |
| download | kmi-66b39eb7ce9605cbb70defdca7f0eb144855ddcd.tar.gz kmi-66b39eb7ce9605cbb70defdca7f0eb144855ddcd.zip | |
change sys_ret handling to always include id
Diffstat (limited to 'src/uapi/proc.c')
| -rw-r--r-- | src/uapi/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uapi/proc.c b/src/uapi/proc.c index 74f211c..c0fe5f0 100644 --- a/src/uapi/proc.c +++ b/src/uapi/proc.c @@ -43,7 +43,7 @@ SYSCALL_DEFINE5(create)(struct tcb *t, sys_arg_t func, * function? */ alloc_stack(c); - set_args5(c, c->tid, d0, d1, d2, d3); + set_ret5(c, c->tid, d0, d1, d2, d3); set_return(c, func); c->notify_id = t->notify_id; @@ -227,7 +227,7 @@ static void swap(struct tcb *t, struct tcb *s) notify(s, 0); /* no notifications, so get register state for new thread */ - return_args(s, get_args(s)); + set_ret(s, 6, get_ret(s)); } /** |
