aboutsummaryrefslogtreecommitdiff
path: root/common/uapi/conf.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-09-15 19:21:14 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-09-15 19:46:07 +0300
commita717296a2036cede5fccfff544513043a984d614 (patch)
tree68f75a23adc298628fb9cab41fd47402a99dd19d /common/uapi/conf.c
parent619725a5f2f5272f9cbb547ed95c87312c2765a9 (diff)
downloadkmi-a717296a2036cede5fccfff544513043a984d614.tar.gz
kmi-a717296a2036cede5fccfff544513043a984d614.zip
change syscalls to take 5 params and return 6
+ In total, a syscall is built up of 6 values, with the first being the syscall number. Symmetrically, the first value is now a status and the following five values return "values". This allows us to cram in more info into the ipc_* functions. The performance difference is absolutely minimal, at least from my testing in qemu.
Diffstat (limited to 'common/uapi/conf.c')
-rw-r--r--common/uapi/conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/uapi/conf.c b/common/uapi/conf.c
index 470b81e..bf4b42c 100644
--- a/common/uapi/conf.c
+++ b/common/uapi/conf.c
@@ -25,7 +25,7 @@ size_t __call_stack_size = SZ_2M;
*/
SYSCALL_DEFINE1(conf_get)(sys_arg_t param)
{
- return (struct sys_ret){ OK, 0 };
+ return (struct sys_ret){ OK, 0, 0, 0, 0, 0 };
}
/**
@@ -43,7 +43,7 @@ SYSCALL_DEFINE2(conf_set)(sys_arg_t param, sys_arg_t val)
UNUSED(val);
/* no parameters supported atm */
- return (struct sys_ret){ OK, 0 };
+ return (struct sys_ret){ OK, 0, 0, 0, 0, 0 };
}
/**
@@ -59,8 +59,8 @@ SYSCALL_DEFINE1(poweroff)(sys_arg_t type)
case SHUTDOWN:
case COLD_REBOOT:
case WARM_REBOOT:
- return (struct sys_ret){ OK, poweroff(type) };
+ return (struct sys_ret){ OK, poweroff(type), 0, 0, 0, 0 };
};
- return (struct sys_ret){ ERR_INVAL, 0 };
+ return (struct sys_ret){ ERR_INVAL, 0, 0, 0, 0, 0 };
}