This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Use _REENT_SMALL for Thumb-2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]