Changeset 0af322c in rtems


Ignore:
Timestamp:
May 23, 2014, 12:27:12 PM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
b3049a1
Parents:
4edf348c
git-author:
Daniel Hellstrom <daniel@…> (05/23/14 12:27:12)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/23/14 13:49:37)
Message:

SMP: make IPI fatal code unique

The same smp fatal code is used in percpu
_Per_CPU_State_change(). In order to determine which CPU
requested a fatal shutdown and which CPU responds to it a
unique code should be used.

A unique code makes it also possible to handle the CPUs
differently in the fatal exception handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/smpimpl.h

    r4edf348c r0af322c  
    6060  SMP_FATAL_MANDATORY_PROCESSOR_NOT_PRESENT,
    6161  SMP_FATAL_MULTITASKING_START_ON_UNASSIGNED_PROCESSOR,
    62   SMP_FATAL_START_OF_MANDATORY_PROCESSOR_FAILED
     62  SMP_FATAL_START_OF_MANDATORY_PROCESSOR_FAILED,
     63  SMP_FATAL_SHUTDOWN_RESPONSE
    6364} SMP_Fatal_code;
    6465
     
    141142
    142143    if ( ( message & SMP_MESSAGE_SHUTDOWN ) != 0 ) {
    143       rtems_fatal( RTEMS_FATAL_SOURCE_SMP, SMP_FATAL_SHUTDOWN );
     144      rtems_fatal( RTEMS_FATAL_SOURCE_SMP, SMP_FATAL_SHUTDOWN_RESPONSE );
    144145      /* does not continue past here */
    145146    }
Note: See TracChangeset for help on using the changeset viewer.