forked from Imagelibrary/rtems
GLobal reentrancy structure is now dynamically initialized.
This commit is contained in:
@@ -60,7 +60,7 @@ rtems_unsigned32 MY_task_get_note(
|
|||||||
|
|
||||||
|
|
||||||
int libc_reentrant; /* do we think we are reentrant? */
|
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
|
* CYGNUS newlib routine that does atexit() processing and flushes
|
||||||
@@ -294,6 +294,7 @@ libc_init(int reentrant)
|
|||||||
rtems_id extension_id;
|
rtems_id extension_id;
|
||||||
rtems_status_code rc;
|
rtems_status_code rc;
|
||||||
|
|
||||||
|
libc_global_reent = (struct _reent) _REENT_INIT((libc_global_reent));
|
||||||
_REENT = &libc_global_reent;
|
_REENT = &libc_global_reent;
|
||||||
|
|
||||||
if (reentrant)
|
if (reentrant)
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ rtems_unsigned32 MY_task_get_note(
|
|||||||
|
|
||||||
|
|
||||||
int libc_reentrant; /* do we think we are reentrant? */
|
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
|
* CYGNUS newlib routine that does atexit() processing and flushes
|
||||||
@@ -294,6 +294,7 @@ libc_init(int reentrant)
|
|||||||
rtems_id extension_id;
|
rtems_id extension_id;
|
||||||
rtems_status_code rc;
|
rtems_status_code rc;
|
||||||
|
|
||||||
|
libc_global_reent = (struct _reent) _REENT_INIT((libc_global_reent));
|
||||||
_REENT = &libc_global_reent;
|
_REENT = &libc_global_reent;
|
||||||
|
|
||||||
if (reentrant)
|
if (reentrant)
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ rtems_unsigned32 MY_task_get_note(
|
|||||||
|
|
||||||
|
|
||||||
int libc_reentrant; /* do we think we are reentrant? */
|
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
|
* CYGNUS newlib routine that does atexit() processing and flushes
|
||||||
@@ -294,6 +294,7 @@ libc_init(int reentrant)
|
|||||||
rtems_id extension_id;
|
rtems_id extension_id;
|
||||||
rtems_status_code rc;
|
rtems_status_code rc;
|
||||||
|
|
||||||
|
libc_global_reent = (struct _reent) _REENT_INIT((libc_global_reent));
|
||||||
_REENT = &libc_global_reent;
|
_REENT = &libc_global_reent;
|
||||||
|
|
||||||
if (reentrant)
|
if (reentrant)
|
||||||
|
|||||||
Reference in New Issue
Block a user