Changeset 726b27c in rtems-schedsim for schedsim/shell/schedsim_smpsimple/smp_stub.c


Ignore:
Timestamp:
Dec 13, 2013, 5:01:48 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
8703c13
Parents:
9a34e3a
git-author:
Joel Sherrill <joel.sherrill@…> (12/13/13 17:01:48)
git-committer:
Joel Sherrill <joel.sherrill@…> (04/28/14 16:33:52)
Message:

schedsim: Update to latest RTEMS. Works Uniprocessor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedsim/shell/schedsim_smpsimple/smp_stub.c

    r9a34e3a r726b27c  
    1616
    1717uint32_t Schedsim_Current_cpu;
     18extern uint32_t Schedsim_Maximum_CPUs_From_Command_Line;
    1819
    1920void bsp_smp_secondary_cpu_initialize(int cpu)
     
    2728}
    2829
    29 int bsp_smp_initialize(
    30   int maximum
     30uint32_t bsp_smp_initialize(
     31  uint32_t configured_cpu_count
    3132)
    3233{
     34  if ( configured_cpu_count < Schedsim_Maximum_CPUs_From_Command_Line ) {
     35    printf(
     36      "ERROR - Maximum cores per confdefs.h is %d\n",
     37      configured_cpu_count
     38    );
     39    exit( 1 );
     40  }
     41
    3342  /* return the number of CPUs */
    34   return maximum;
     43  return Schedsim_Maximum_CPUs_From_Command_Line;
    3544}
    3645
Note: See TracChangeset for help on using the changeset viewer.