From 7336be9d78266adfb540170e5105caf8eb003d2f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 18 Feb 2014 13:40:39 +0100 Subject: score: SMP initialization and shutdown changes Rename _SMP_Request_other_cores_to_perform_first_context_switch() into _SMP_Request_start_multitasking() since this requests now a multitasking start on all configured and available processors. The name corresponds _Thread_Start_multitasking() and _SMP_Start_multitasking_on_secondary_processor() actions issued in response to this request. Move in source file to right place. Rename PER_CPU_STATE_READY_TO_BEGIN_MULTITASKING into PER_CPU_STATE_READY_TO_START_MULTITASKING. Rename PER_CPU_STATE_BEGIN_MULTITASKING into PER_CPU_STATE_REQUEST_START_MULTITASKING. Rename _SMP_Request_other_cores_to_shutdown() into _SMP_Request_shutdown(). Add a per-CPU state lock to protect all changes. This was necessary to offer a controlled shutdown of the system (atomic read/writes alone are not sufficient for this kind of synchronization). Add documentation for Per_CPU_State. Delete debug output. New tests smptests/smpfatal01 and smptests/smpfatal02. --- cpukit/score/cpu/no_cpu/rtems/score/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/cpu/no_cpu/rtems/score') diff --git a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h index 5c34e17d03..4155883f79 100644 --- a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h +++ b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h @@ -1462,10 +1462,10 @@ CPU_Counter_ticks _CPU_Counter_difference( #ifdef RTEMS_SMP /** - * @brief Performs CPU specific SMP initialization in the context of the main + * @brief Performs CPU specific SMP initialization in the context of the boot * processor. * - * This function is invoked on the main processor by RTEMS during + * This function is invoked on the boot processor by RTEMS during * initialization. All interrupt stacks are allocated at this point in case * the CPU port allocates the interrupt stacks. * -- cgit v1.2.3