Changeset 3c103ba in rtems


Ignore:
Timestamp:
Feb 18, 2016, 7:47:26 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5b0d2c1
Parents:
b3a4c48e
git-author:
Sebastian Huber <sebastian.huber@…> (02/18/16 07:47:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/04/16 12:36:09)
Message:

score: Add _Per_CPU_Is_boot_processor()

Location:
cpukit/score
Files:
2 edited

Legend:

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

    rb3a4c48e r3c103ba  
    366366     */
    367367    bool online;
     368
     369    /**
     370     * @brief Indicates if the processor is the one that performed the initial
     371     * system initialization.
     372     */
     373    bool boot;
    368374  #endif
    369375
     
    530536#if defined( RTEMS_SMP )
    531537  return cpu->online;
     538#else
     539  (void) cpu;
     540
     541  return true;
     542#endif
     543}
     544
     545static inline bool _Per_CPU_Is_boot_processor(
     546  const Per_CPU_Control *cpu
     547)
     548{
     549#if defined( RTEMS_SMP )
     550  return cpu->boot;
    532551#else
    533552  (void) cpu;
  • cpukit/score/src/smp.c

    rb3a4c48e r3c103ba  
    5858      started = true;
    5959
     60      cpu->boot = true;
     61
    6062      if ( !_Scheduler_Should_start_processor( assignment ) ) {
    6163        _SMP_Fatal( SMP_FATAL_BOOT_PROCESSOR_NOT_ASSIGNED_TO_SCHEDULER );
Note: See TracChangeset for help on using the changeset viewer.