forked from Imagelibrary/rtems
libcsupport: Do not use _ISR_Nest_level
The _Thread_Dispatch_is_enabled() is false if _ISR_Nest_level is not equal to zero.
This commit is contained in:
@@ -34,9 +34,6 @@ bool malloc_is_system_state_OK(void)
|
||||
if ( !_Thread_Dispatch_is_enabled() )
|
||||
return false;
|
||||
|
||||
if ( _ISR_Nest_level > 0 )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,6 @@ void *realloc(
|
||||
if (_System_state_Is_up(_System_state_Get())) {
|
||||
if (!_Thread_Dispatch_is_enabled())
|
||||
return (void *) 0;
|
||||
|
||||
if (_ISR_Nest_level > 0)
|
||||
return (void *) 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user