17 #include <core/dependencies.h>
19 #ifdef POK_NEEDS_PARTITIONS
23 #include <core/syscall.h>
27 POK_PARTITION_MODE_INIT_COLD = 1,
28 POK_PARTITION_MODE_INIT_WARM = 2,
29 POK_PARTITION_MODE_NORMAL = 3,
30 POK_PARTITION_MODE_IDLE = 4,
31 POK_PARTITION_MODE_RESTART = 5,
32 POK_PARTITION_MODE_STOPPED = 6,
33 }pok_partition_mode_t;
36 #define pok_partition_set_mode(mode) pok_syscall2(POK_SYSCALL_PARTITION_SET_MODE,(uint32_t)mode,0)
38 #define pok_current_partition_get_id(id) pok_syscall2(POK_SYSCALL_PARTITION_GET_ID,(uint32_t)id,0)
40 #define pok_current_partition_get_period(period) pok_syscall2(POK_SYSCALL_PARTITION_GET_PERIOD,(uint32_t)period,0)
42 #define pok_current_partition_get_duration(duration) pok_syscall2(POK_SYSCALL_PARTITION_GET_DURATION,(uint32_t)duration,0)
44 #define pok_current_partition_get_lock_level(lock_level) pok_syscall2(POK_SYSCALL_PARTITION_GET_LOCK_LEVEL,(uint32_t)lock_level,0)
46 #define pok_current_partition_get_operating_mode(op_mode) pok_syscall2(POK_SYSCALL_PARTITION_GET_OPERATING_MODE,(uint32_t)op_mode,0)
48 #define pok_current_partition_get_start_condition(start_condition) pok_syscall2(POK_SYSCALL_PARTITION_GET_START_CONDITION,(uint32_t)start_condition,0)