typedef struct task_info_tag {
unsigned long stack[THREAD_STACKSIZE];
unsigned long sp;
int task_id;
TaskStatus status;
struct task_info_tag *next;
struct task_info_tag *prev;
}*TaskInfo;
// 이런 구조체를 선언하고
typedef struct sch_handle_tag
{
int child_task;
TaskInfo running_task;
TaskInfo root_task;
}SchHandle;
SchHandle gh_sch;