forked from Imagelibrary/rtems
2011-04-21 Jennifer Averett <Jennifer.Averett@OARcorp.com
PR 1777/cpukit * src/lib/libbsp/powerpc/shared/startup/panic.c, src/lib/libcpu/sh/sh7032/score/cpu_asm.c, src/lib/libcpu/sh/sh7045/score/cpu_asm.c, src/lib/libcpu/sh/sh7750/score/cpu_asm.c, src/lib/libcpu/sh/shgdb/score/cpu_asm.c: Consolidated access to _Thread_Dispatch_disable_level.
This commit is contained in:
@@ -134,7 +134,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_disable_level++;
|
||||
_Thread_Dispatch_increment_disable_level();
|
||||
|
||||
#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
|
||||
if ( _ISR_Nest_level == 0 )
|
||||
@@ -156,7 +156,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_disable_level--;
|
||||
_Thread_Dispatch_decrement_disable_level();
|
||||
|
||||
_ISR_Nest_level--;
|
||||
|
||||
@@ -172,7 +172,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
if ( _ISR_Nest_level )
|
||||
return;
|
||||
|
||||
if ( _Thread_Dispatch_disable_level ) {
|
||||
if ( _Thread_Dispatch_in_critical_section() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_disable_level++;
|
||||
_Thread_Dispatch_increment_disable_level();
|
||||
|
||||
#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
|
||||
if ( _ISR_Nest_level == 0 )
|
||||
@@ -158,7 +158,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_disable_level--;
|
||||
_Thread_Dispatch_decrement_disable_level();
|
||||
|
||||
_ISR_Nest_level--;
|
||||
|
||||
@@ -174,7 +174,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
if ( _ISR_Nest_level )
|
||||
return;
|
||||
|
||||
if ( _Thread_Dispatch_disable_level ) {
|
||||
if ( _Thread_Dispatch_in_critical_section() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_disable_level++;
|
||||
_Thread_Dispatch_increment_disable_level();
|
||||
|
||||
#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
|
||||
if ( _ISR_Nest_level == 0 )
|
||||
@@ -82,7 +82,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_disable_level--;
|
||||
_Thread_Dispatch_decrement_disable_level();
|
||||
|
||||
_ISR_Nest_level--;
|
||||
|
||||
@@ -97,7 +97,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
if ( _ISR_Nest_level )
|
||||
return;
|
||||
|
||||
if ( _Thread_Dispatch_disable_level ) {
|
||||
if ( _Thread_Dispatch_in_critical_section() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_disable_level++;
|
||||
_Thread_Dispatch_increment_disable_level();
|
||||
|
||||
#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
|
||||
if ( _ISR_Nest_level == 0 )
|
||||
@@ -55,7 +55,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_disable_level--;
|
||||
_Thread_Dispatch_decrement_disable_level();
|
||||
|
||||
_ISR_Nest_level--;
|
||||
|
||||
@@ -71,7 +71,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
if ( _ISR_Nest_level )
|
||||
return;
|
||||
|
||||
if ( _Thread_Dispatch_disable_level ) {
|
||||
if ( _Thread_Dispatch_in_critical_section() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user