blob: 26eb9ccb8458e3676c54b3f4eaef5492f5fda8e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/**
* @file conf.c
* Runtime configuration sycall implementations.
*
* At the moment there are not runtime configuration parameters.
*/
#include <apos/power.h>
#include <apos/sizes.h>
#include <apos/uapi.h>
size_t __thread_stack_size = SZ_2M;
size_t __call_stack_size = SZ_2M;
SYSCALL_DEFINE1(conf_get)(sys_arg_t param)
{
return (struct sys_ret){ OK, 0 };
}
SYSCALL_DEFINE2(conf_set)(sys_arg_t param, sys_arg_t val)
{
UNUSED(param);
UNUSED(val);
/* no parameters supported atm */
return (struct sys_ret){ OK, 0 };
}
SYSCALL_DEFINE1(poweroff)(sys_arg_t type)
{
switch (type) {
case SHUTDOWN:
case COLD_REBOOT:
case WARM_REBOOT:
return (struct sys_ret){ OK, poweroff(type) };
};
return (struct sys_ret){ ERR_INVAL, 0 };
}
|