aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps/arm/arm-features.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2013-06-18 15:42:56 -0700
committerRoland McGrath <roland@hack.frob.com>2013-06-18 15:42:56 -0700
commit733edfb8ae0266c6a6f01ed29e6a2d2ad64a5aa6 (patch)
tree92c82573d8897c7c0f4e348124b54cd02dd649c4 /ports/sysdeps/arm/arm-features.h
parentd7dffa6a558cc3305cb6b51c4153da67af1f374c (diff)
downloadglibc-733edfb8ae0266c6a6f01ed29e6a2d2ad64a5aa6.tar
glibc-733edfb8ae0266c6a6f01ed29e6a2d2ad64a5aa6.tar.gz
glibc-733edfb8ae0266c6a6f01ed29e6a2d2ad64a5aa6.tar.bz2
glibc-733edfb8ae0266c6a6f01ed29e6a2d2ad64a5aa6.zip
ARM: Make armv7 memcpy implementations SFI-friendly
Diffstat (limited to 'ports/sysdeps/arm/arm-features.h')
-rw-r--r--ports/sysdeps/arm/arm-features.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ports/sysdeps/arm/arm-features.h b/ports/sysdeps/arm/arm-features.h
index 336b6905af..1d4b0f1be9 100644
--- a/ports/sysdeps/arm/arm-features.h
+++ b/ports/sysdeps/arm/arm-features.h
@@ -53,6 +53,14 @@
# define ARM_BX_ALIGN_LOG2 2
#endif
+/* The number of instructions that 'bx' expands to. A more-specific
+ arm-features.h that defines 'bx' as a macro should define this to the
+ number instructions it expands to. This is used only in a context
+ where the 'bx' expansion won't cross an ARM_BX_ALIGN_LOG2 boundary. */
+#ifndef ARM_BX_NINSNS
+# define ARM_BX_NINSNS 1
+#endif
+
/* An OS-specific arm-features.h file may define ARM_NO_INDEX_REGISTER to
indicate that the two-register addressing modes must never be used. */