This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [patch] Use _REENT_SMALL for Thumb-2
- From: Jeff Johnston <jjohnstn at redhat dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: newlib at sourceware dot org
- Date: Tue, 29 Aug 2006 17:01:17 -0400
- Subject: Re: [patch] Use _REENT_SMALL for Thumb-2
- References: <200608292125.02347.paul@codesourcery.com>
Patch checked in.
-- Jeff J.
Paul Brook wrote:
The patch below defines _REENT_SMALL when built in Thumb-2 mode.
While Thumb-2 is/will be used on ARM cpus of all sizes the current Thumb-2
based CPUs are tiny Cortes-M3 cores, typically with 2k or 4k of ram.
Ok?
Paul
2006-08-29 Paul Brook <paul@codesourcery.com>
* libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
Index: newlib/libc/include/sys/config.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/config.h,v
retrieving revision 1.44
diff -u -p -r1.44 config.h
--- newlib/libc/include/sys/config.h 16 Aug 2006 21:39:43 -0000 1.44
+++ newlib/libc/include/sys/config.h 29 Aug 2006 20:18:18 -0000
@@ -125,6 +125,10 @@
#define _REENT_SMALL
#endif /* __m32c__ */
+#ifdef __thumb2__
+/* Thumb-2 based ARMv7M devices are really small. */
+#define _REENT_SMALL
+#endif
#ifdef __SPU__
#define MALLOC_ALIGNMENT 16