summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/newlibc.c
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/src/newlibc.c
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/src/newlibc.c')
-rw-r--r--cpukit/libcsupport/src/newlibc.c2
1 files changed, 1 insertions, 1 deletions
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!!!