blob: bda8d32673789f89835fe39294a851003eba0901 [file] [log] [blame]
PulkoMandy17fc7592022-07-28 18:27:54 +02001/* used for special operating system support */
2extern bvtype task_preempt_regs[],task_schedule_regs[];
3typedef struct tasklist {
4 struct Var *v;
5 int prio;
6 int taskid;
7 enum {NON_PREEMPTIVE=1,DOES_BLOCK=2,CALLS_SCHED=4,ISR=8} flags;
8 bvtype context[BVSIZE(MAXR+1)/sizeof(bvtype)];
9 bvtype preempt_context[BVSIZE(MAXR+1)/sizeof(bvtype)];
10 bvtype schedule_context[BVSIZE(MAXR+1)/sizeof(bvtype)];
11 bvtype unsaved_context[BVSIZE(MAXR+1)/sizeof(bvtype)];
12} tasklist;
13