Explicitly accessing banked registers on ARM

Posted by Demiurg on Stack Overflow See other posts from Stack Overflow or by Demiurg
Published on 2010-05-06T22:34:41Z Indexed on 2010/05/06 22:38 UTC
Read the original article Hit count: 209

Filed under:

According to the ARM manual, it should be possible to access the banked registers for a specific CPU mode as, for instance, "r13_svc". When I try to do this gcc yells at me with the following error:

immediate expression requires a # prefix -- `mov r2,sp_svc'

What's wrong?

© Stack Overflow or respective owner

Related posts about arm