Changeset 36f4cb9 in rtems-schedsim


Ignore:
Timestamp:
May 23, 2014, 9:46:22 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
24af09a
Parents:
1182d11
git-author:
Joel Sherrill <joel.sherrill@…> (05/23/14 21:46:22)
git-committer:
Joel Sherrill <joel.sherrill@…> (05/23/14 21:46:49)
Message:

Use shared main() and file processor

Location:
schedsim/shell
Files:
1 added
1 deleted
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • schedsim/shell/schedsim_priority/Makefile.am

    r1182d11 r36f4cb9  
    11bin_PROGRAMS = schedsim_priority
    2 schedsim_priority_SOURCES = config.c \
    3     schedsim.cc wrap_thread_dispatch.c printheir_executing.c
     2schedsim_priority_SOURCES = config.c
     3schedsim_priority_SOURCES += wrap_thread_dispatch.c
     4schedsim_priority_SOURCES += printheir_executing.c
     5schedsim_priority_SOURCES += $(srcdir)/../shared/add_commands_stub.c
    46
    57if HAS_SMP
  • schedsim/shell/schedsim_smppriority/Makefile.am

    r1182d11 r36f4cb9  
    99SOURCES += $(srcdir)/../schedsim_smpsimple/smp_stub.c
    1010SOURCES += $(srcdir)/../schedsim_smpsimple/wrap_thread_dispatch.c
    11 SOURCES += $(srcdir)/../schedsim_smpsimple/schedsim.cc
    1211schedsim_smppriority_SOURCES = $(SOURCES)
    1312
  • schedsim/shell/schedsim_smppriority_affinity/Makefile.am

    r1182d11 r36f4cb9  
    99SOURCES += $(srcdir)/../schedsim_smpsimple/smp_stub.c
    1010SOURCES += $(srcdir)/../schedsim_smpsimple/wrap_thread_dispatch.c
    11 SOURCES += $(srcdir)/../schedsim_smpsimple/schedsim.cc
    1211schedsim_smppriority_affinity_SOURCES = $(SOURCES)
    1312
  • schedsim/shell/schedsim_smpsimple/Makefile.am

    r1182d11 r36f4cb9  
    99schedsim_smpsimple_SOURCES += smp_stub.c
    1010schedsim_smpsimple_SOURCES += wrap_thread_dispatch.c
    11 schedsim_smpsimple_SOURCES += schedsim.cc
    1211
    1312cpukitdir=@rtems_srcdir@/cpukit
  • schedsim/shell/shared/Makefile.am

    r1182d11 r36f4cb9  
    2525
    2626libschedsim_a_SOURCES =
     27libschedsim_a_SOURCES += schedsim.c
    2728libschedsim_a_SOURCES += commands.c
    2829libschedsim_a_SOURCES += getopt.c
  • schedsim/shell/shared/schedsim.c

    r1182d11 r36f4cb9  
    1616#include "shell.h"
    1717#include "rtems_sched.h"
     18#include "schedsim_shell.h"
    1819
    1920/*
     
    4445#define RTEMS_SHELL_MAXIMUM_ARGUMENTS (128)
    4546
    46 void ProcessScript(
     47int ProcessScript(
    4748  FILE *script
    4849)
     
    106107}
    107108
    108 extern "C" {
    109  void add_commands(void);
    110 };
    111 
    112109int main(
    113110  int argc,
     
    115112)
    116113{
    117   int opt;
     114  int  sc; 
     115  int  opt;
     116
    118117  progname = argv[0];
    119118 
     
    163162  //  Process the Script
    164163  //
    165   ProcessScript( Script );
     164  sc = ProcessScript( Script );
    166165
    167166  //
     
    170169  (void) fclose( Script );
    171170
    172   //
    173   //  Just in case something throws
    174   //
    175   try {
    176   } catch (...) {
    177     exit(-1);
    178   }
    179 
    180   return 0;
     171  return sc;
    181172}
  • schedsim/shell/shared/schedsim_shell.h

    r1182d11 r36f4cb9  
    2424extern "C" {
    2525#endif
     26
     27void add_commands(void);
    2628
    2729#define CHECK_RTEMS_IS_UP() \
Note: See TracChangeset for help on using the changeset viewer.