summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-18 15:11:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-18 15:11:41 +0000
commitedfb0eba88dccf34da67b2ff0efee6762a3908c6 (patch)
treefa9595a04319aed7a104aef31359c2069a170d12 /c/src
parentAdded CVS Id string. (diff)
downloadrtems-edfb0eba88dccf34da67b2ff0efee6762a3908c6.tar.bz2
GLobal reentrancy structure is now dynamically initialized.
Diffstat (limited to 'c/src')
-rw-r--r--c/src/exec/libcsupport/src/newlibc.c3
-rw-r--r--c/src/lib/libc/newlibc.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/c/src/exec/libcsupport/src/newlibc.c b/c/src/exec/libcsupport/src/newlibc.c
index 570c905f30..4926467837 100644
--- a/c/src/exec/libcsupport/src/newlibc.c
+++ b/c/src/exec/libcsupport/src/newlibc.c
@@ -60,7 +60,7 @@ rtems_unsigned32 MY_task_get_note(
int libc_reentrant; /* do we think we are reentrant? */
-struct _reent libc_global_reent = _REENT_INIT(libc_global_reent);
+struct _reent libc_global_reent;
/*
* CYGNUS newlib routine that does atexit() processing and flushes
@@ -294,6 +294,7 @@ libc_init(int reentrant)
rtems_id extension_id;
rtems_status_code rc;
+ libc_global_reent = (struct _reent) _REENT_INIT((libc_global_reent));
_REENT = &libc_global_reent;
if (reentrant)
diff --git a/c/src/lib/libc/newlibc.c b/c/src/lib/libc/newlibc.c
index 570c905f30..4926467837 100644
--- a/c/src/lib/libc/newlibc.c
+++ b/c/src/lib/libc/newlibc.c
@@ -60,7 +60,7 @@ rtems_unsigned32 MY_task_get_note(
int libc_reentrant; /* do we think we are reentrant? */
-struct _reent libc_global_reent = _REENT_INIT(libc_global_reent);
+struct _reent libc_global_reent;
/*
* CYGNUS newlib routine that does atexit() processing and flushes
@@ -294,6 +294,7 @@ libc_init(int reentrant)
rtems_id extension_id;
rtems_status_code rc;
+ libc_global_reent = (struct _reent) _REENT_INIT((libc_global_reent));
_REENT = &libc_global_reent;
if (reentrant)