ARM (Thumb Mode) _CPU_Context_switch_arm

Matthew J Fletcher amimjf at
Thu Feb 21 17:02:20 UTC 2013


As you may have guessed from the title my BSP is now running right up to
context switching into the first task, i can see from the heir structures
that its got the correct function pointer into my Init task.

Looking at the #ifdef __thumb__ where it restores the context it fails at
the bx instruction, the lr register is not a valid address. Before RTEMS we
used a home grown executive and the asm to swap contexts looks very

Does anyone run an arm BSP in thumb mode ?


Matthew J Fletcher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list