summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-04-03 23:01:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-04-03 23:01:12 +0000
commit10a82e709408ef691c16969a849fb35fe07ae4c1 (patch)
treeedbae9671fe4e3cda21bafc2f6e9af32cf05efe2 /cpukit/libcsupport
parent2003-03-27 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-10a82e709408ef691c16969a849fb35fe07ae4c1.tar.bz2
2003-04-03 Eri Valette <eric.valette@free.fr>
PR 381/core * src/newlibc.c: Switch from using _REENT_INIT to _REEINT_INIT_PTR to fix strange run-time problem where EIP was corrupted on pc386 BSP.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/ChangeLog6
-rw-r--r--cpukit/libcsupport/src/newlibc.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog
index 8143d251d1..273bcc5e31 100644
--- a/cpukit/libcsupport/ChangeLog
+++ b/cpukit/libcsupport/ChangeLog
@@ -1,3 +1,9 @@
+2003-04-03 Eri Valette <eric.valette@free.fr>
+
+ PR 381/core
+ * src/newlibc.c: Switch from using _REENT_INIT to _REEINT_INIT_PTR
+ to fix strange run-time problem where EIP was corrupted on pc386 BSP.
+
2003-03-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AC_CHECK_FUNCS(strlcpy strlcat).
diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c
index 97834c42e1..43840ead8b 100644
--- a/cpukit/libcsupport/src/newlibc.c
+++ b/cpukit/libcsupport/src/newlibc.c
@@ -128,7 +128,7 @@ rtems_extension libc_start_hook(
#ifdef __GNUC__
/* GCC extension: structure constants */
- *ptr = (struct _reent) _REENT_INIT((*ptr));
+ _REENT_INIT_PTR((ptr));
#else
/*
* WARNING: THIS IS VERY DEPENDENT ON NEWLIB!!!