diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-04-03 23:01:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-04-03 23:01:12 +0000 |
commit | 10a82e709408ef691c16969a849fb35fe07ae4c1 (patch) | |
tree | edbae9671fe4e3cda21bafc2f6e9af32cf05efe2 /cpukit/libcsupport | |
parent | 2003-03-27 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-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/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libcsupport/src/newlibc.c | 2 |
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!!! |