Support Schedule node
This commit is contained in:
@@ -54,13 +54,20 @@ typedef struct {
|
||||
struct IpcArgInfo {
|
||||
uint16_t offset;
|
||||
uint16_t len;
|
||||
};
|
||||
union {
|
||||
uint16_t attr;
|
||||
struct {
|
||||
uint16_t null_ptr : 1;
|
||||
uint16_t reserved : 15;
|
||||
};
|
||||
};
|
||||
} __attribute__((packed));
|
||||
|
||||
/* [header, ipc_arg_buffer_len[], ipc_arg_buffer[]] */
|
||||
struct IpcMsg {
|
||||
ipc_msg_header header;
|
||||
uintptr_t buf[];
|
||||
};
|
||||
} __attribute__((packed));
|
||||
enum {
|
||||
IPC_ARG_INFO_BASE_OFFSET = sizeof(ipc_msg_header),
|
||||
};
|
||||
@@ -21,6 +21,7 @@ enum ThreadState {
|
||||
|
||||
typedef struct ScheduleContext {
|
||||
intptr_t remain_tick;
|
||||
uint64_t run_time;
|
||||
} ScheduleContext;
|
||||
|
||||
typedef struct TaskSleepContext {
|
||||
|
||||
Reference in New Issue
Block a user