Module Name:    src
Committed By:   matt
Date:           Sat Aug 17 01:08:35 UTC 2013

Modified Files:
        src/lib/libc/arch/arm/sys: __aeabi_read_tp.S

Log Message:
Enforce that this must be not compiled using Thumb1


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/arm/sys/__aeabi_read_tp.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/arm/sys/__aeabi_read_tp.S
diff -u src/lib/libc/arch/arm/sys/__aeabi_read_tp.S:1.3 src/lib/libc/arch/arm/sys/__aeabi_read_tp.S:1.4
--- src/lib/libc/arch/arm/sys/__aeabi_read_tp.S:1.3	Tue Nov 20 22:02:46 2012
+++ src/lib/libc/arch/arm/sys/__aeabi_read_tp.S	Sat Aug 17 01:08:35 2013
@@ -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 @@ ENTRY(__aeabi_read_tp)
 	mov	r1, ip			/* restore r1 */
 #endif
 	RET
-_END(__aeabi_read_tp)
+END(__aeabi_read_tp)

Reply via email to