Lines Matching defs:context
84 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext));
86 context->mstatus = RISCV_MSTATUS_MPP | RISCV_MSTATUS_MPIE;
87 context->mepc = (UINT32)(UINTPTR)OsTaskEntry;
88 context->tp = TP_INIT_VALUE;
89 context->sp = SP_INIT_VALUE;
90 context->s11 = S11_INIT_VALUE;
91 context->s10 = S10_INIT_VALUE;
92 context->s9 = S9_INIT_VALUE;
93 context->s8 = S8_INIT_VALUE;
94 context->s7 = S7_INIT_VALUE;
95 context->s6 = S6_INIT_VALUE;
96 context->s5 = S5_INIT_VALUE;
97 context->s4 = S4_INIT_VALUE;
98 context->s3 = S3_INIT_VALUE;
99 context->s2 = S2_INIT_VALUE;
100 context->s1 = S1_INIT_VALUE;
101 context->s0 = FP_INIT_VALUE;
102 context->t6 = T6_INIT_VALUE;
103 context->t5 = T5_INIT_VALUE;
104 context->t4 = T4_INIT_VALUE;
105 context->t3 = T3_INIT_VALUE;
106 context->a7 = A7_INIT_VALUE;
107 context->a6 = A6_INIT_VALUE;
108 context->a5 = A5_INIT_VALUE;
109 context->a4 = A4_INIT_VALUE;
110 context->a3 = A3_INIT_VALUE;
111 context->a2 = A2_INIT_VALUE;
112 context->a1 = A1_INIT_VALUE;
113 context->a0 = taskID;
114 context->t2 = T2_INIT_VALUE;
115 context->t1 = T1_INIT_VALUE;
116 context->t0 = T0_INIT_VALUE;
117 context->ra = (UINT32)(UINTPTR)ArchSysExit;
118 return (VOID *)context;