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.
This commit is contained in:
Joel Sherrill
2003-04-03 23:01:12 +00:00
parent edd688eac9
commit 10a82e7094
2 changed files with 7 additions and 1 deletions

View File

@@ -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> 2003-03-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AC_CHECK_FUNCS(strlcpy strlcat). * configure.ac: AC_CHECK_FUNCS(strlcpy strlcat).

View File

@@ -128,7 +128,7 @@ rtems_extension libc_start_hook(
#ifdef __GNUC__ #ifdef __GNUC__
/* GCC extension: structure constants */ /* GCC extension: structure constants */
*ptr = (struct _reent) _REENT_INIT((*ptr)); _REENT_INIT_PTR((ptr));
#else #else
/* /*
* WARNING: THIS IS VERY DEPENDENT ON NEWLIB!!! * WARNING: THIS IS VERY DEPENDENT ON NEWLIB!!!