On 2016/4/1 9:30, Jim Wilson wrote:
On Thu, Mar 31, 2016 at 5:04 PM, fengwei.yin fengwei.yin@linaro.org wrote:
Remove the __thumb__ part?
If you remove the __thumb__ part, then you will get an assembler error.
palantir:2025$ arm-linux-gnueabi-as UnwindCurrent.s UnwindCurrent.s: Assembler messages: UnwindCurrent.s:1504: Error: PC not allowed in register list -- `stmia r0,{r0-r15}' palantir:2026$
This instruction is not a valid thumb instruction. It is a valid arm instruction, but deprecated. The assembler gives an error because you are in thumb mode. Since you already have a __thumb__ version of the macro, you can put a ".thumb" directive at the end of the asm, after the orr instruction, to manually switch back into thumb mode.
Cool. Thanks a lot. I will try it.
Jim