mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-26 18:54:55 +08:00
score: Robust thread dispatch
On SMP configurations, it is a fatal error to call blocking operating system with interrupts disabled, since this prevents delivery of inter-processor interrupts. This could lead to executing threads which are not allowed to execute resulting in undefined behaviour. The ARM Cortex-M port has a similar problem, since the interrupt state is not a part of the thread context. Update #2811.
This commit is contained in:
@@ -57,7 +57,8 @@ static const char *const internal_error_text[] = {
|
||||
"INTERNAL_ERROR_POSIX_INIT_THREAD_ENTRY_IS_NULL",
|
||||
"INTERNAL_ERROR_THREAD_QUEUE_DEADLOCK",
|
||||
"INTERNAL_ERROR_THREAD_QUEUE_ENQUEUE_STICKY_FROM_BAD_STATE",
|
||||
"INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL"
|
||||
"INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL",
|
||||
"INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT"
|
||||
};
|
||||
|
||||
const char *rtems_internal_error_text( rtems_fatal_code error )
|
||||
|
||||
Reference in New Issue
Block a user