Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/arm/sys Enforce that this must be not compiled...



details:   https://anonhg.NetBSD.org/src/rev/bd84c9884b3c
branches:  trunk
changeset: 789376:bd84c9884b3c
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Aug 17 01:08:35 2013 +0000

description:
Enforce that this must be not compiled using Thumb1

diffstat:

 lib/libc/arch/arm/sys/__aeabi_read_tp.S |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 5415b9fb0885 -r bd84c9884b3c lib/libc/arch/arm/sys/__aeabi_read_tp.S
--- a/lib/libc/arch/arm/sys/__aeabi_read_tp.S   Sat Aug 17 01:07:45 2013 +0000
+++ b/lib/libc/arch/arm/sys/__aeabi_read_tp.S   Sat Aug 17 01:08:35 2013 +0000
@@ -1,7 +1,11 @@
-/* $NetBSD: __aeabi_read_tp.S,v 1.3 2012/11/20 22:02:46 matt Exp $ */
+/* $NetBSD: __aeabi_read_tp.S,v 1.4 2013/08/17 01:08:35 matt Exp $ */
 
 #include "SYS.h"
 
+#if defined(__thumb__) && !defined(_ARM_ARCH_T2)
+#error Thumb only supported on armv7
+#endif
+
 /*
  * Implementations of this function should corrupt only the result register
  * (r0) and the non-parameter integer core registers allowed to be corrupted
@@ -17,4 +21,4 @@
        mov     r1, ip                  /* restore r1 */
 #endif
        RET
-_END(__aeabi_read_tp)
+END(__aeabi_read_tp)



Home | Main Index | Thread Index | Old Index