From 5fcc2caa103531b0cf2267e822e952e26684aab8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 8 Mar 2022 09:44:31 +0100 Subject: score: Disable thread dispatching earlier Disable thread dispatching earlier on secondary processors. This ensures that fatal error and per-CPU job handlers are called with thread dispatching disabled. On the boot processor, the thread dispatching is already disabled by _Thread_Dispatch_initialization(). --- cpukit/score/src/threadstartmultitasking.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'cpukit/score/src/threadstartmultitasking.c') diff --git a/cpukit/score/src/threadstartmultitasking.c b/cpukit/score/src/threadstartmultitasking.c index 76187efe80..5cc2051be4 100644 --- a/cpukit/score/src/threadstartmultitasking.c +++ b/cpukit/score/src/threadstartmultitasking.c @@ -51,12 +51,6 @@ void _Thread_Start_multitasking( void ) #if defined(RTEMS_SMP) _Per_CPU_Set_state( cpu_self, PER_CPU_STATE_UP ); _SMP_Try_to_process_message( cpu_self, SMP_MESSAGE_FORCE_PROCESSING ); - - /* - * Threads begin execution in the _Thread_Handler() function. This - * function will set the thread dispatch disable level to zero. - */ - cpu_self->thread_dispatch_disable_level = 1; #endif heir = _Thread_Get_heir_and_make_it_executing( cpu_self ); -- cgit v1.2.3