[PATCH] D61052: [compiler-rt][builtins] Implement some fetch-and-x operations for Cortex-M

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 15:20:56 PDT 2019


efriedma added a comment.

Is there any reason to avoid 32-bit ldrex/strex on M-class processors other than Cortex-M0?

I haven't really done any systems programming on ARM, so I'm not sure what the consequences of the sequence you use for enabling/disabling interrupts might be.  Is it reasonable for a library to turn off interrupts for a few cycles?  Is it possible that the value of primask might change after the mrs, but before the cpsid instruction?


Repository:
  rCRT Compiler Runtime

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61052/new/

https://reviews.llvm.org/D61052





More information about the llvm-commits mailing list