Support Schedule node

This commit is contained in:
TXuian
2024-12-24 03:36:26 +08:00
parent af1ceec308
commit e0ff453726
7 changed files with 27 additions and 7 deletions
@@ -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 {