mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 03:17:50 +08:00
score: Add and use _Thread_Dispatch_is_enabled()
Delete _Thread_Dispatch_in_critical_section() and _Thread_Is_dispatching_enabled().
This commit is contained in:
@@ -56,12 +56,12 @@ void _BSP_Fatal_error(unsigned int v)
|
||||
printk(" UNKNOWN (0x%x)\n",THESRC);
|
||||
break;
|
||||
}
|
||||
if ( _Thread_Dispatch_in_critical_section() )
|
||||
if ( _Thread_Dispatch_is_enabled() )
|
||||
printk("enabled\n");
|
||||
else
|
||||
printk(
|
||||
" Error occurred in a Thread Dispatching DISABLED context (level %i)\n",
|
||||
_Thread_Dispatch_get_disable_level());
|
||||
else
|
||||
printk("enabled\n");
|
||||
|
||||
if ( _ISR_Nest_level ) {
|
||||
printk(
|
||||
|
||||
@@ -170,7 +170,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
if ( _ISR_Nest_level )
|
||||
return;
|
||||
|
||||
if ( _Thread_Dispatch_in_critical_section() ) {
|
||||
if ( !_Thread_Dispatch_is_enabled() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
if ( _ISR_Nest_level )
|
||||
return;
|
||||
|
||||
if ( _Thread_Dispatch_in_critical_section() ) {
|
||||
if ( !_Thread_Dispatch_is_enabled() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
if ( _ISR_Nest_level )
|
||||
return;
|
||||
|
||||
if ( _Thread_Dispatch_in_critical_section() ) {
|
||||
if ( !_Thread_Dispatch_is_enabled() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
if ( _ISR_Nest_level )
|
||||
return;
|
||||
|
||||
if ( _Thread_Dispatch_in_critical_section() ) {
|
||||
if ( !_Thread_Dispatch_is_enabled() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user