[rtems commit] libcsupport: Do not use _ISR_Nest_level

Sebastian Huber sebh at rtems.org
Thu Jul 18 07:54:30 UTC 2013


Module:    rtems
Branch:    master
Commit:    e7ce41bb6df5d1b52fa1bb6555d68eb5a5c8b362
Changeset: http://git.rtems.org/rtems/commit/?id=e7ce41bb6df5d1b52fa1bb6555d68eb5a5c8b362

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jul 17 16:14:49 2013 +0200

libcsupport: Do not use _ISR_Nest_level

The _Thread_Dispatch_is_enabled() is false if _ISR_Nest_level is not
equal to zero.

---

 cpukit/libcsupport/src/malloc_deferred.c |    3 ---
 cpukit/libcsupport/src/realloc.c         |    3 ---
 2 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/cpukit/libcsupport/src/malloc_deferred.c b/cpukit/libcsupport/src/malloc_deferred.c
index a2e95ea..9e6fbb3 100644
--- a/cpukit/libcsupport/src/malloc_deferred.c
+++ b/cpukit/libcsupport/src/malloc_deferred.c
@@ -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;
 }
 
diff --git a/cpukit/libcsupport/src/realloc.c b/cpukit/libcsupport/src/realloc.c
index a831cae..5c7992d 100644
--- a/cpukit/libcsupport/src/realloc.c
+++ b/cpukit/libcsupport/src/realloc.c
@@ -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;
   }
 
   /*




More information about the vc mailing list