Skip to content

Commit

Permalink
Merge pull request kmackay#211 from Prabhuk/master
Browse files Browse the repository at this point in the history
Update ARM inline assembly constraints.
  • Loading branch information
kmackay authored Apr 20, 2023
2 parents 1372136 + a029d90 commit fe8ed90
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions asm_arm.inc
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
#endif

#if (uECC_PLATFORM == uECC_arm_thumb)
#define REG_RW "+l"
#define REG_WRITE "=l"
#define REG_RW "+&l"
#define REG_WRITE "=&l"
#else
#define REG_RW "+r"
#define REG_WRITE "=r"
#define REG_RW "+&r"
#define REG_WRITE "=&r"
#endif

#if (uECC_PLATFORM == uECC_arm_thumb || uECC_PLATFORM == uECC_arm_thumb2)
#define REG_RW_LO "+l"
#define REG_WRITE_LO "=l"
#define REG_RW_LO "+&l"
#define REG_WRITE_LO "=&l"
#else
#define REG_RW_LO "+r"
#define REG_WRITE_LO "=r"
#define REG_RW_LO "+&r"
#define REG_WRITE_LO "=&r"
#endif

#if (uECC_PLATFORM == uECC_arm_thumb2)
Expand Down

0 comments on commit fe8ed90

Please sign in to comment.