rtems_semaphore_obtain

Sergei Organov osv at javad.com
Thu Mar 29 16:42:18 UTC 2007


"Johan Zandin" <johan.zandin at space.se> writes:
[...]
>        _Context_Switch( &executing->Registers, &heir->Registers );
>
>        executing = _Thread_Executing;
>
>        _ISR_Disable( level );         -----+
>                                            |  Region where
>     }                                      |  an occuring 
>                                            |  interrupt
>      _Thread_Dispatch_disable_level = 0;   |  causes problems
>                                            |
>      _ISR_Enable( level );            -----+

But how interrupt can occur when it's disabled in this region?! If
_ISR_Disable()/_ISR_Enable() don't work on your target, you have hard
trouble anyway.

-- Sergei.



More information about the users mailing list