diff options
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/src/coremutex.c | 4 | ||||
-rw-r--r-- | cpukit/score/src/interr.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c index 6e23561f19..60a2995882 100644 --- a/cpukit/score/src/coremutex.c +++ b/cpukit/score/src/coremutex.c @@ -66,9 +66,9 @@ void _CORE_mutex_Initialize( _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) #ifdef __RTEMS_STRICT_ORDER_MUTEX__ - _Chain_Prepend_unprotected( &executing->lock_mutex, + _Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex, &the_mutex->queue.lock_queue ); - the_mutex->queue.priority_before = executing->current_priority; + the_mutex->queue.priority_before = _Thread_Executing->current_priority; #endif _Thread_Executing->resource_count++; diff --git a/cpukit/score/src/interr.c b/cpukit/score/src/interr.c index e904815762..4431c7b313 100644 --- a/cpukit/score/src/interr.c +++ b/cpukit/score/src/interr.c @@ -61,4 +61,5 @@ void _Internal_error_Occurred( _CPU_Fatal_halt( the_error ); /* will not return from this routine */ + while (TRUE); } |