Lines Matching refs:pxTopOfStack
117 StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack, in pxPortInitialiseStack() argument
122 StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack, in pxPortInitialiseStack()
137 *pxTopOfStack = ( StackType_t ) 0x00000000; in pxPortInitialiseStack()
138 pxTopOfStack--; in pxPortInitialiseStack()
139 *pxTopOfStack = ( StackType_t ) 0x00000000; in pxPortInitialiseStack()
140 pxTopOfStack--; in pxPortInitialiseStack()
141 *pxTopOfStack = ( StackType_t ) 0x00000000; in pxPortInitialiseStack()
142 pxTopOfStack--; in pxPortInitialiseStack()
146 *pxTopOfStack = ( StackType_t ) ( pxTopOfStack + 3 ); in pxPortInitialiseStack()
147 pxTopOfStack--; in pxPortInitialiseStack()
148 *pxTopOfStack = ( StackType_t ) pxEndOfStack; in pxPortInitialiseStack()
149 pxTopOfStack--; in pxPortInitialiseStack()
154 *pxTopOfStack = portINITIAL_FSR; in pxPortInitialiseStack()
155 pxTopOfStack--; in pxPortInitialiseStack()
161 *pxTopOfStack = mfmsr() & ~portMSR_IE; in pxPortInitialiseStack()
166 *pxTopOfStack |= portMSR_EE; in pxPortInitialiseStack()
170 pxTopOfStack--; in pxPortInitialiseStack()
174 *pxTopOfStack = ( StackType_t ) 0x00; in pxPortInitialiseStack()
180 pxTopOfStack--; in pxPortInitialiseStack()
181 *pxTopOfStack = ( StackType_t ) ulR2; /* R2 - read only small data area. */ in pxPortInitialiseStack()
182 pxTopOfStack--; in pxPortInitialiseStack()
183 *pxTopOfStack = ( StackType_t ) 0x03; /* R3 - return values and temporaries. */ in pxPortInitialiseStack()
184 pxTopOfStack--; in pxPortInitialiseStack()
185 *pxTopOfStack = ( StackType_t ) 0x04; /* R4 - return values and temporaries. */ in pxPortInitialiseStack()
186 pxTopOfStack--; in pxPortInitialiseStack()
187 *pxTopOfStack = ( StackType_t ) pvParameters; /* R5 contains the function call parameters. */ in pxPortInitialiseStack()
190 pxTopOfStack--; in pxPortInitialiseStack()
191 *pxTopOfStack = ( StackType_t ) 0x06; /* R6 - other parameters and temporaries. */ in pxPortInitialiseStack()
192 pxTopOfStack--; in pxPortInitialiseStack()
193 *pxTopOfStack = ( StackType_t ) 0x07; /* R7 - other parameters and temporaries. */ in pxPortInitialiseStack()
194 pxTopOfStack--; in pxPortInitialiseStack()
195 *pxTopOfStack = ( StackType_t ) NULL; /* R8 - other parameters and temporaries. */ in pxPortInitialiseStack()
196 pxTopOfStack--; in pxPortInitialiseStack()
197 *pxTopOfStack = ( StackType_t ) 0x09; /* R9 - other parameters and temporaries. */ in pxPortInitialiseStack()
198 pxTopOfStack--; in pxPortInitialiseStack()
199 *pxTopOfStack = ( StackType_t ) 0x0a; /* R10 - other parameters and temporaries. */ in pxPortInitialiseStack()
200 pxTopOfStack--; in pxPortInitialiseStack()
201 *pxTopOfStack = ( StackType_t ) 0x0b; /* R11 - temporaries. */ in pxPortInitialiseStack()
202 pxTopOfStack--; in pxPortInitialiseStack()
203 *pxTopOfStack = ( StackType_t ) 0x0c; /* R12 - temporaries. */ in pxPortInitialiseStack()
204 pxTopOfStack--; in pxPortInitialiseStack()
206 pxTopOfStack -= 8; in pxPortInitialiseStack()
209 *pxTopOfStack = ( StackType_t ) ulR13; /* R13 - read/write small data area. */ in pxPortInitialiseStack()
210 pxTopOfStack--; in pxPortInitialiseStack()
211 *pxTopOfStack = ( StackType_t ) pxCode; /* R14 - return address for interrupt. */ in pxPortInitialiseStack()
212 pxTopOfStack--; in pxPortInitialiseStack()
213 *pxTopOfStack = ( StackType_t ) _start1; /* R15 - return address for subroutine. */ in pxPortInitialiseStack()
216 pxTopOfStack--; in pxPortInitialiseStack()
217 *pxTopOfStack = ( StackType_t ) 0x10; /* R16 - return address for trap (debugger). */ in pxPortInitialiseStack()
218 pxTopOfStack--; in pxPortInitialiseStack()
219 … *pxTopOfStack = ( StackType_t ) 0x11; /* R17 - return address for exceptions, if configured. */ in pxPortInitialiseStack()
220 pxTopOfStack--; in pxPortInitialiseStack()
221 …*pxTopOfStack = ( StackType_t ) 0x12; /* R18 - reserved for assembler and compiler temporaries. … in pxPortInitialiseStack()
222 pxTopOfStack--; in pxPortInitialiseStack()
224 pxTopOfStack -= 4; in pxPortInitialiseStack()
227 …*pxTopOfStack = ( StackType_t ) 0x00; /* R19 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
230 pxTopOfStack--; in pxPortInitialiseStack()
231 …*pxTopOfStack = ( StackType_t ) 0x14; /* R20 - reserved for storing a pointer to the Global Offs… in pxPortInitialiseStack()
232 pxTopOfStack--; in pxPortInitialiseStack()
233 …*pxTopOfStack = ( StackType_t ) 0x15; /* R21 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
234 pxTopOfStack--; in pxPortInitialiseStack()
235 …*pxTopOfStack = ( StackType_t ) 0x16; /* R22 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
236 pxTopOfStack--; in pxPortInitialiseStack()
237 …*pxTopOfStack = ( StackType_t ) 0x17; /* R23 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
238 pxTopOfStack--; in pxPortInitialiseStack()
239 …*pxTopOfStack = ( StackType_t ) 0x18; /* R24 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
240 pxTopOfStack--; in pxPortInitialiseStack()
241 …*pxTopOfStack = ( StackType_t ) 0x19; /* R25 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
242 pxTopOfStack--; in pxPortInitialiseStack()
243 …*pxTopOfStack = ( StackType_t ) 0x1a; /* R26 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
244 pxTopOfStack--; in pxPortInitialiseStack()
245 …*pxTopOfStack = ( StackType_t ) 0x1b; /* R27 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
246 pxTopOfStack--; in pxPortInitialiseStack()
247 …*pxTopOfStack = ( StackType_t ) 0x1c; /* R28 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
248 pxTopOfStack--; in pxPortInitialiseStack()
249 …*pxTopOfStack = ( StackType_t ) 0x1d; /* R29 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
250 pxTopOfStack--; in pxPortInitialiseStack()
251 …*pxTopOfStack = ( StackType_t ) 0x1e; /* R30 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
252 pxTopOfStack--; in pxPortInitialiseStack()
253 …*pxTopOfStack = ( StackType_t ) 0x1f; /* R31 - must be saved across function calls. Callee-save.… in pxPortInitialiseStack()
254 pxTopOfStack--; in pxPortInitialiseStack()
256 pxTopOfStack -= 13; in pxPortInitialiseStack()
261 return pxTopOfStack; in pxPortInitialiseStack()