diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-07 21:41:07 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-07 21:41:07 +0300 |
| commit | 5187a37d8cb999f7a464cb9b112c9ea926dc1fd7 (patch) | |
| tree | b8e9fb0cdad365f61735b1f8e4539e5888f21ec2 /common/uapi/ipc.c | |
| parent | 4b3799eaf4b7ef32eaf40910a7abf2719ce0fa6c (diff) | |
| download | kmi-5187a37d8cb999f7a464cb9b112c9ea926dc1fd7.tar.gz kmi-5187a37d8cb999f7a464cb9b112c9ea926dc1fd7.zip | |
add unlikely hint to leave_rpc
Diffstat (limited to 'common/uapi/ipc.c')
| -rw-r--r-- | common/uapi/ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/uapi/ipc.c b/common/uapi/ipc.c index 1596169..36f2941 100644 --- a/common/uapi/ipc.c +++ b/common/uapi/ipc.c @@ -157,7 +157,7 @@ static void leave_rpc(struct tcb *t, struct sys_ret a) { /* if we're not in an rpc, the user messed something up. */ /** @todo choose or come up with more fitting error value. */ - if (!is_rpc(t)) + if (unlikely(!is_rpc(t))) return_args(t, SYS_RET1(ERR_MISC)); vm_t rpc_stack = t->rpc_stack + BASE_PAGE_SIZE; |
