arm.S 257 B

123456789101112131415161718192021
  1. /* on arm clang doesn't support .arch directive */
  2. .text
  3. .syntax unified
  4. #if !defined (__thumb2__)
  5. .arch armv7a
  6. .arm
  7. #else
  8. .arch armv7
  9. .thumb
  10. #endif
  11. mcr p15, 0, r11, c7, c14, 2
  12. /* clang restricts access to dsb/isb despite .arch */
  13. dsb
  14. isb