added code to prevent attempts to clean up the library when rtems is

down.
This commit is contained in:
Joel Sherrill
1997-04-09 20:05:59 +00:00
parent 0956b52390
commit e39e6f77cf
3 changed files with 24 additions and 0 deletions

View File

@@ -79,6 +79,14 @@ extern void _reclaim_reent(struct _reent *);
void
libc_wrapup(void)
{
/*
* In case RTEMS is already down, don't do this. It could be
* dangerous.
*/
if (!_System_state_Is_up(_System_state_Get()))
return;
_wrapup_reent(0);
if (_REENT != &libc_global_reent)
{

View File

@@ -79,6 +79,14 @@ extern void _reclaim_reent(struct _reent *);
void
libc_wrapup(void)
{
/*
* In case RTEMS is already down, don't do this. It could be
* dangerous.
*/
if (!_System_state_Is_up(_System_state_Get()))
return;
_wrapup_reent(0);
if (_REENT != &libc_global_reent)
{

View File

@@ -79,6 +79,14 @@ extern void _reclaim_reent(struct _reent *);
void
libc_wrapup(void)
{
/*
* In case RTEMS is already down, don't do this. It could be
* dangerous.
*/
if (!_System_state_Is_up(_System_state_Get()))
return;
_wrapup_reent(0);
if (_REENT != &libc_global_reent)
{