Lines Matching refs:ulIndex
170 UBaseType_t ulIndex = CONTEXT_SIZE - 1U; in pxPortInitialiseStack() local
178 xMPUSettings->ulContext[ ulIndex ] = SYS_MODE; in pxPortInitialiseStack()
184 xMPUSettings->ulContext[ ulIndex ] = USER_MODE; in pxPortInitialiseStack()
191 xMPUSettings->ulContext[ ulIndex ] |= portTHUMB_MODE_BIT; in pxPortInitialiseStack()
194 ulIndex--; in pxPortInitialiseStack()
196 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) pxCode; /* PC. */ in pxPortInitialiseStack()
197 ulIndex--; in pxPortInitialiseStack()
199 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR. */ in pxPortInitialiseStack()
200 ulIndex--; in pxPortInitialiseStack()
202 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) pxTopOfStack; /* SP. */ in pxPortInitialiseStack()
203 ulIndex--; in pxPortInitialiseStack()
206 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x12121212; /* R12. */ in pxPortInitialiseStack()
207 ulIndex--; in pxPortInitialiseStack()
208 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x11111111; /* R11. */ in pxPortInitialiseStack()
209 ulIndex--; in pxPortInitialiseStack()
210 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x10101010; /* R10. */ in pxPortInitialiseStack()
211 ulIndex--; in pxPortInitialiseStack()
212 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x09090909; /* R9. */ in pxPortInitialiseStack()
213 ulIndex--; in pxPortInitialiseStack()
214 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x08080808; /* R8. */ in pxPortInitialiseStack()
215 ulIndex--; in pxPortInitialiseStack()
216 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x07070707; /* R7. */ in pxPortInitialiseStack()
217 ulIndex--; in pxPortInitialiseStack()
218 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x06060606; /* R6. */ in pxPortInitialiseStack()
219 ulIndex--; in pxPortInitialiseStack()
220 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x05050505; /* R5. */ in pxPortInitialiseStack()
221 ulIndex--; in pxPortInitialiseStack()
222 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x04040404; /* R4. */ in pxPortInitialiseStack()
223 ulIndex--; in pxPortInitialiseStack()
224 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x03030303; /* R3. */ in pxPortInitialiseStack()
225 ulIndex--; in pxPortInitialiseStack()
226 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x02020202; /* R2. */ in pxPortInitialiseStack()
227 ulIndex--; in pxPortInitialiseStack()
228 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x01010101; /* R1. */ in pxPortInitialiseStack()
229 ulIndex--; in pxPortInitialiseStack()
230 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) pvParameters; /* R0. */ in pxPortInitialiseStack()
231 ulIndex--; in pxPortInitialiseStack()
235 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000015; /* S31. */ in pxPortInitialiseStack()
236 ulIndex--; in pxPortInitialiseStack()
237 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD1500000; /* S30. */ in pxPortInitialiseStack()
238 ulIndex--; in pxPortInitialiseStack()
239 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000014; /* S29. */ in pxPortInitialiseStack()
240 ulIndex--; in pxPortInitialiseStack()
241 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD1400000; /* S28. */ in pxPortInitialiseStack()
242 ulIndex--; in pxPortInitialiseStack()
243 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000013; /* S27. */ in pxPortInitialiseStack()
244 ulIndex--; in pxPortInitialiseStack()
245 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD1300000; /* S26. */ in pxPortInitialiseStack()
246 ulIndex--; in pxPortInitialiseStack()
247 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000012; /* S25. */ in pxPortInitialiseStack()
248 ulIndex--; in pxPortInitialiseStack()
249 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD1200000; /* S24. */ in pxPortInitialiseStack()
250 ulIndex--; in pxPortInitialiseStack()
251 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000011; /* S23. */ in pxPortInitialiseStack()
252 ulIndex--; in pxPortInitialiseStack()
253 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD1100000; /* S22. */ in pxPortInitialiseStack()
254 ulIndex--; in pxPortInitialiseStack()
255 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000010; /* S21. */ in pxPortInitialiseStack()
256 ulIndex--; in pxPortInitialiseStack()
257 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD1000000; /* S20. */ in pxPortInitialiseStack()
258 ulIndex--; in pxPortInitialiseStack()
259 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000009; /* S19. */ in pxPortInitialiseStack()
260 ulIndex--; in pxPortInitialiseStack()
261 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD9000000; /* S18. */ in pxPortInitialiseStack()
262 ulIndex--; in pxPortInitialiseStack()
263 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000008; /* S17. */ in pxPortInitialiseStack()
264 ulIndex--; in pxPortInitialiseStack()
265 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD8000000; /* S16. */ in pxPortInitialiseStack()
266 ulIndex--; in pxPortInitialiseStack()
267 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000007; /* S15. */ in pxPortInitialiseStack()
268 ulIndex--; in pxPortInitialiseStack()
269 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD7000000; /* S14. */ in pxPortInitialiseStack()
270 ulIndex--; in pxPortInitialiseStack()
271 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000006; /* S13. */ in pxPortInitialiseStack()
272 ulIndex--; in pxPortInitialiseStack()
273 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD6000000; /* S12. */ in pxPortInitialiseStack()
274 ulIndex--; in pxPortInitialiseStack()
275 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000005; /* S11. */ in pxPortInitialiseStack()
276 ulIndex--; in pxPortInitialiseStack()
277 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD5000000; /* S10. */ in pxPortInitialiseStack()
278 ulIndex--; in pxPortInitialiseStack()
279 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000004; /* S9. */ in pxPortInitialiseStack()
280 ulIndex--; in pxPortInitialiseStack()
281 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD4000000; /* S8. */ in pxPortInitialiseStack()
282 ulIndex--; in pxPortInitialiseStack()
283 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000003; /* S7. */ in pxPortInitialiseStack()
284 ulIndex--; in pxPortInitialiseStack()
285 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD3000000; /* S6. */ in pxPortInitialiseStack()
286 ulIndex--; in pxPortInitialiseStack()
287 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000002; /* S5. */ in pxPortInitialiseStack()
288 ulIndex--; in pxPortInitialiseStack()
289 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD2000000; /* S4. */ in pxPortInitialiseStack()
290 ulIndex--; in pxPortInitialiseStack()
291 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000001; /* S3. */ in pxPortInitialiseStack()
292 ulIndex--; in pxPortInitialiseStack()
293 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD1000000; /* S2. */ in pxPortInitialiseStack()
294 ulIndex--; in pxPortInitialiseStack()
295 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000000; /* S1. */ in pxPortInitialiseStack()
296 ulIndex--; in pxPortInitialiseStack()
297 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0xD0000000; /* S0. */ in pxPortInitialiseStack()
298 ulIndex--; in pxPortInitialiseStack()
300 xMPUSettings->ulContext[ ulIndex ] = ( StackType_t ) 0x00000000; /* FPSR. */ in pxPortInitialiseStack()
301 ulIndex--; in pxPortInitialiseStack()
306 xMPUSettings->ulContext[ ulIndex ] = portNO_CRITICAL_NESTING; in pxPortInitialiseStack()
321 return &( xMPUSettings->ulContext[ ulIndex ] ); in pxPortInitialiseStack()
354 uint32_t ulIndex = 0x0; in vPortStoreTaskMPUSettings() local
369 ulIndex = portSTACK_REGION; in vPortStoreTaskMPUSettings()
371 xMPUSettings->xRegion[ ulIndex ].ulRegionBaseAddress = ( uint32_t ) __SRAM_segment_start__; in vPortStoreTaskMPUSettings()
372 xMPUSettings->xRegion[ ulIndex ].ulRegionSize = ( ulRegionLengthEncoded | in vPortStoreTaskMPUSettings()
374 … xMPUSettings->xRegion[ ulIndex ].ulRegionAttribute = ( portMPU_REGION_PRIV_RW_USER_RW_NOEXEC | in vPortStoreTaskMPUSettings()
379 for( ulIndex = 0UL; ulIndex < portNUM_CONFIGURABLE_REGIONS; ulIndex++ ) in vPortStoreTaskMPUSettings()
382 if( ( xRegions[ ulIndex ] ).ulLengthInBytes > 0UL ) in vPortStoreTaskMPUSettings()
384 ulRegionLength = xRegions[ ulIndex ].ulLengthInBytes; in vPortStoreTaskMPUSettings()
390 …configASSERT( ( ( ( uint32_t ) xRegions[ ulIndex ].pvBaseAddress ) % ( ulRegionLengthDecoded ) ) =… in vPortStoreTaskMPUSettings()
392 …xMPUSettings->xRegion[ ulIndex ].ulRegionBaseAddress = ( uint32_t ) xRegions[ ulIndex ].pvBaseAddr… in vPortStoreTaskMPUSettings()
393 xMPUSettings->xRegion[ ulIndex ].ulRegionSize = ( ulRegionLengthEncoded | in vPortStoreTaskMPUSettings()
395 … xMPUSettings->xRegion[ ulIndex ].ulRegionAttribute = xRegions[ ulIndex ].ulParameters; in vPortStoreTaskMPUSettings()
399 xMPUSettings->xRegion[ ulIndex ].ulRegionBaseAddress = 0x0UL; in vPortStoreTaskMPUSettings()
400 xMPUSettings->xRegion[ ulIndex ].ulRegionSize = 0x0UL; in vPortStoreTaskMPUSettings()
401 xMPUSettings->xRegion[ ulIndex ].ulRegionAttribute = 0x0UL; in vPortStoreTaskMPUSettings()
418 ulIndex = portSTACK_REGION; in vPortStoreTaskMPUSettings()
419 xMPUSettings->xRegion[ ulIndex ].ulRegionBaseAddress = ( uint32_t ) pxBottomOfStack; in vPortStoreTaskMPUSettings()
420 xMPUSettings->xRegion[ ulIndex ].ulRegionSize = ( ulRegionLengthEncoded | in vPortStoreTaskMPUSettings()
422 … xMPUSettings->xRegion[ ulIndex ].ulRegionAttribute = ( portMPU_REGION_PRIV_RW_USER_RW_NOEXEC | in vPortStoreTaskMPUSettings()