svn commit: r235472 - projects/armv6/lib/libc/arm/gen
Olivier Houchard
cognet at FreeBSD.org
Tue May 15 12:08:52 UTC 2012
Author: cognet
Date: Tue May 15 12:08:51 2012
New Revision: 235472
URL: http://svn.freebsd.org/changeset/base/235472
Log:
Implement __aeabi_read_tp for armv6/7 as well
Modified:
projects/armv6/lib/libc/arm/gen/__aeabi_read_tp.S
Modified: projects/armv6/lib/libc/arm/gen/__aeabi_read_tp.S
==============================================================================
--- projects/armv6/lib/libc/arm/gen/__aeabi_read_tp.S Tue May 15 10:58:17 2012 (r235471)
+++ projects/armv6/lib/libc/arm/gen/__aeabi_read_tp.S Tue May 15 12:08:51 2012 (r235472)
@@ -31,8 +31,12 @@ __FBSDID("$FreeBSD$");
#include <machine/sysarch.h>
ENTRY(__aeabi_read_tp)
+#ifdef ARM_TP_ADDRESS
ldr r0, .Larm_tp_address
ldr r0, [r0]
+#else
+ mrc p15, 0, r0, c13, c0, 3
+#endif
RET
.Larm_tp_address:
More information about the svn-src-projects
mailing list