Changeset b38dbcc in rtems-schedsim


Ignore:
Timestamp:
May 14, 2014, 2:55:21 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
66f2b7f
Parents:
05a8dca
Message:

Many files: rm white space at EOL and EOF

Location:
schedsim
Files:
36 edited

Legend:

Unmodified
Added
Removed
  • schedsim/rtems/debugio.c

    r05a8dca rb38dbcc  
    1515BSP_output_char_function_type           BSP_output_char = BSP_output_char_f;
    1616BSP_polling_getchar_function_type       BSP_poll_char = NULL;
    17 
  • schedsim/rtems/sched_cpu/cpu.c

    r05a8dca rb38dbcc  
    141141
    142142#include <stdio.h>
    143 void _SMP_cpu_swap( 
     143void _SMP_cpu_swap(
    144144  uint32_t *a,
    145145  uint32_t *value,
  • schedsim/rtems/sched_cpu/rtems/score/cpu.h

    r05a8dca rb38dbcc  
    12591259
    12601260#ifdef RTEMS_SMP
    1261   #define _CPU_Context_switch_to_first_task_smp(_context ) 
     1261  #define _CPU_Context_switch_to_first_task_smp(_context )
    12621262
    12631263  uint32_t _CPU_SMP_Get_current_processor( void );
     
    13361336 *  SMP Support
    13371337 */
    1338 void __SMP_cpu_swap( 
     1338void __SMP_cpu_swap(
    13391339  uint32_t *a,
    13401340  uint32_t *value,
  • schedsim/shell/schedsim_priority/config.c

    r05a8dca rb38dbcc  
    77#define CONFIGURE_DISABLE_BSP_SETTINGS
    88#include <confdefs.h>
    9 
  • schedsim/shell/schedsim_priority/printheir_executing.c

    r05a8dca rb38dbcc  
    2222
    2323void PRINT_HEIR() {
    24   printf( 
    25     "  Thread Heir: 0x%08x priority=%ld\n", 
    26     _Thread_Heir->Object.id, 
    27     (long) _Thread_Heir->current_priority 
     24  printf(
     25    "  Thread Heir: 0x%08x priority=%ld\n",
     26    _Thread_Heir->Object.id,
     27    (long) _Thread_Heir->current_priority
    2828  );
    2929}
  • schedsim/shell/schedsim_priority/smp_stub.c

    r05a8dca rb38dbcc  
    3131void _CPU_SMP_Send_interrupt( uint32_t target_processor_index )
    3232{
    33 } 
     33}
    3434
    3535void _CPU_SMP_Processor_event_broadcast( void )
  • schedsim/shell/schedsim_priority/wrap_thread_dispatch.c

    r05a8dca rb38dbcc  
    3434
    3535  _ISR_Disable_without_giant( level );
    36     if ( last_heir != _Thread_Heir ) 
     36    if ( last_heir != _Thread_Heir )
    3737      PRINT_HEIR();
    3838
  • schedsim/shell/schedsim_smpsimple/config.c

    r05a8dca rb38dbcc  
    1717#define CONFIGURE_DISABLE_BSP_SETTINGS
    1818#include <rtems/confdefs.h>
    19 
  • schedsim/shell/schedsim_smpsimple/main_dispatch.c

    r05a8dca rb38dbcc  
    3737    }
    3838  }
    39  
     39
    4040  Schedsim_Current_cpu = current_cpu;
    4141  return 0;
  • schedsim/shell/schedsim_smpsimple/main_dump_all_cpus.c

    r05a8dca rb38dbcc  
    4747  }
    4848  printf( "=== End of Ready Set of Threads\n" );
    49  
     49
    5050  return 0;
    5151}
  • schedsim/shell/schedsim_smpsimple/main_dump_ready_tasks.c

    r05a8dca rb38dbcc  
    3232  Thread_Control *t;
    3333
    34   Scheduler_simple_SMP_Context * self = 
     34  Scheduler_simple_SMP_Context * self =
    3535    (Scheduler_simple_SMP_Context *) _Scheduler_Table[0].context;
    3636
     
    4949  }
    5050  printf( "=== End of Ready Set of Threads\n" );
    51  
     51
    5252  return 0;
    5353}
  • schedsim/shell/schedsim_smpsimple/printheir_executing.c

    r05a8dca rb38dbcc  
    2525
    2626void PRINT_HEIR() {
    27   printf( 
     27  printf(
    2828    "  CPU %d: Thread Heir 0x%08x priority=%ld\n",
    2929    Schedsim_Current_cpu,
    30     _Thread_Heir->Object.id, 
    31     (long) _Thread_Heir->current_priority 
     30    _Thread_Heir->Object.id,
     31    (long) _Thread_Heir->current_priority
    3232  );
    3333}
  • schedsim/shell/schedsim_smpsimple/smp_stub.c

    r05a8dca rb38dbcc  
    3434void _CPU_SMP_Send_interrupt( uint32_t target_processor_index )
    3535{
    36 } 
     36}
    3737
    3838void _CPU_SMP_Processor_event_broadcast( void )
  • schedsim/shell/schedsim_smpsimple/wrap_thread_dispatch.c

    r05a8dca rb38dbcc  
    4242
    4343  _ISR_Disable_without_giant( level );
    44     if ( last_heir[Schedsim_Current_cpu] != _Thread_Heir ) 
     44    if ( last_heir[Schedsim_Current_cpu] != _Thread_Heir )
    4545      PRINT_HEIR();
    4646
     
    6565    check_heir_and_executing();
    6666  }
    67  
     67
    6868  Schedsim_Current_cpu = current_cpu;
    6969}
    70 
  • schedsim/shell/shared/commands.c

    r05a8dca rb38dbcc  
    7777  NULL
    7878};
    79 
  • schedsim/shell/shared/getopt.c

    r05a8dca rb38dbcc  
    7676Copyright (C) 1997 Gregory Pietsch
    7777
    78 This file and the accompanying getopt.h header file are hereby placed in the 
     78This file and the accompanying getopt.h header file are hereby placed in the
    7979public domain without restrictions.  Just give the author credit, don't
    8080claim you wrote it or prevent anyone else from using it.
     
    146146}
    147147
    148 /* read_globals: read the values from the globals into a getopt_data 
     148/* read_globals: read the values from the globals into a getopt_data
    149149   structure */
    150150static void
  • schedsim/shell/shared/include/newlib/_ansi.h

    r05a8dca rb38dbcc  
    5252#define _PARAMS(paramlist)              paramlist
    5353#endif
    54 #else   
     54#else
    5555#define _PTR            char *
    5656#define _AND            ;
  • schedsim/shell/shared/include/newlib/getopt.h

    r05a8dca rb38dbcc  
    7575Copyright (C) 1997 Gregory Pietsch
    7676
    77 This file and the accompanying getopt.c implementation file are hereby 
    78 placed in the public domain without restrictions.  Just give the author 
     77This file and the accompanying getopt.c implementation file are hereby
     78placed in the public domain without restrictions.  Just give the author
    7979credit, don't claim you wrote it or prevent anyone else from using it.
    8080
  • schedsim/shell/shared/lookup_task.c

    r05a8dca rb38dbcc  
    4242    memset( name, '\0', sizeof(name) );
    4343    strncpy( name, string, 4 );
    44     status = RTEMS_IDENT_NAME( 
     44    status = RTEMS_IDENT_NAME(
    4545      rtems_build_name( name[0], name[1], name[2], name[3] ),
    4646      OBJECTS_SEARCH_ALL_NODES,
  • schedsim/shell/shared/main_clocktick.c

    r05a8dca rb38dbcc  
    3131  unsigned long        tmp;
    3232  rtems_interval       t;
    33  
     33
    3434  CHECK_RTEMS_IS_UP();
    3535
     
    5858        argv[1],
    5959        rtems_status_text( status )
    60       ); 
     60      );
    6161      return -1;
    6262    }
  • schedsim/shell/shared/main_semcreate.c

    r05a8dca rb38dbcc  
    104104      argv[1],
    105105      rtems_status_text( status )
    106     ); 
     106    );
    107107    return -1;
    108108  }
    109109
    110110  printf( "Semaphore (%s) created: id=0x%08x\n", argv[1], id );
    111  
     111
    112112  return 0;
    113113}
  • schedsim/shell/shared/main_semdelete.c

    r05a8dca rb38dbcc  
    3232  rtems_id           id;
    3333  rtems_status_code  status;
    34  
     34
    3535  CHECK_RTEMS_IS_UP();
    3636
     
    4747   */
    4848  printf("Deleting semaphore (0x%08x)\n", id );
    49  
     49
    5050  /*
    5151   * This wraps the allocator mutex and should defer any context switching
     
    6161      argv[1],
    6262      rtems_status_text( status )
    63     ); 
     63    );
    6464    return -1;
    6565  }
  • schedsim/shell/shared/main_semflush.c

    r05a8dca rb38dbcc  
    2929  rtems_id           id;
    3030  rtems_status_code  status;
    31  
     31
    3232  CHECK_RTEMS_IS_UP();
    3333
     
    5151      argv[1],
    5252      rtems_status_text( status )
    53     ); 
     53    );
    5454    return -1;
    5555  }
  • schedsim/shell/shared/main_semobtain.c

    r05a8dca rb38dbcc  
    3232  rtems_interval     ticks;
    3333  Thread_Control    *caller;
    34  
     34
    3535  /* XXX for now, do not support polling */
    3636
     
    6969        argv[1],
    7070        rtems_status_text( status )
    71       ); 
     71      );
    7272      return -1;
    7373    }
  • schedsim/shell/shared/main_semrelease.c

    r05a8dca rb38dbcc  
    2929  rtems_id           id;
    3030  rtems_status_code  status;
    31  
     31
    3232  CHECK_RTEMS_IS_UP();
    3333
     
    5151      argv[1],
    5252      rtems_status_text( status )
    53     ); 
     53    );
    5454    return -1;
    5555  }
  • schedsim/shell/shared/main_taskcreate.c

    r05a8dca rb38dbcc  
    5858  char               option;
    5959  int                arg;
    60  
     60
    6161  CHECK_RTEMS_IS_UP();
    6262
     
    124124      name,
    125125      rtems_status_text( status )
    126     ); 
     126    );
    127127    return -1;
    128128  }
     
    134134    priority
    135135  );
    136  
     136
    137137  printf(
    138138    "Task (%s) starting: id=0x%08x, priority=%ld\n",
     
    149149      name,
    150150      rtems_status_text( status )
    151     ); 
     151    );
    152152    return -1;
    153153  }
  • schedsim/shell/shared/main_taskdelete.c

    r05a8dca rb38dbcc  
    2929  rtems_id           id;
    3030  rtems_status_code  status;
    31  
     31
    3232  CHECK_RTEMS_IS_UP();
    3333
     
    5050      argv[1],
    5151      rtems_status_text( status )
    52     ); 
     52    );
    5353    return -1;
    5454  }
    5555
    5656  printf("Task (0x%08x) deleted\n", id );
    57  
     57
    5858  return 0;
    5959}
  • schedsim/shell/shared/main_taskgetaffinity.c

    r05a8dca rb38dbcc  
    3838  unsigned long        tmp;
    3939  cpu_set_t            cpuset;
    40  
     40
    4141  CHECK_RTEMS_IS_UP();
    4242
     
    6262      argv[1],
    6363      rtems_status_text( status )
    64     ); 
     64    );
    6565    return -1;
    6666  }
    6767
    6868  printf("Task (0x%08x) Get affinity=0x%08x\n", id, cpuset.__bits[0] );
    69  
     69
    7070  return 0;
    7171}
  • schedsim/shell/shared/main_taskmode.c

    r05a8dca rb38dbcc  
    8888      "Task Mode returned %s\n",
    8989      rtems_status_text( status )
    90     ); 
     90    );
    9191    return -1;
    9292  }
     
    9797    print_mode( "Current Mode:  ", mode );
    9898  }
    99  
     99
    100100  return 0;
    101101}
  • schedsim/shell/shared/main_taskpriority.c

    r05a8dca rb38dbcc  
    3636  rtems_task_priority  old;
    3737  rtems_task_priority  new;
    38  
     38
    3939  CHECK_RTEMS_IS_UP();
    4040
     
    6464      argv[1],
    6565      rtems_status_text( status )
    66     ); 
     66    );
    6767    return -1;
    6868  }
     
    7272  else
    7373    printf("Task (0x%08x) Current Priority is %d\n", id, new );
    74  
     74
    7575  return 0;
    7676}
  • schedsim/shell/shared/main_taskresume.c

    r05a8dca rb38dbcc  
    2929  rtems_id           id;
    3030  rtems_status_code  status;
    31  
     31
    3232  CHECK_RTEMS_IS_UP();
    3333
     
    4444   */
    4545  printf("Resuming task (0x%08x)\n", id );
    46  
     46
    4747  status = rtems_task_resume( id );
    4848  if ( status != RTEMS_SUCCESSFUL ) {
     
    5252      argv[1],
    5353      rtems_status_text( status )
    54     ); 
     54    );
    5555    return -1;
    5656  }
  • schedsim/shell/shared/main_tasksetaffinity.c

    r05a8dca rb38dbcc  
    3838  unsigned long        tmp;
    3939  cpu_set_t            cpuset;
    40  
     40
    4141  CHECK_RTEMS_IS_UP();
    4242
     
    6767      argv[1],
    6868      rtems_status_text( status )
    69     ); 
     69    );
    7070    return -1;
    7171  }
    7272
    7373  printf("Task (0x%08x) Set affinity=0x%08x\n", id, cpuset.__bits[0] );
    74  
     74
    7575  return 0;
    7676}
  • schedsim/shell/shared/main_tasksuspend.c

    r05a8dca rb38dbcc  
    2929  rtems_id           id;
    3030  rtems_status_code  status;
    31  
     31
    3232  CHECK_RTEMS_IS_UP();
    3333
     
    5151      argv[1],
    5252      rtems_status_text( status )
    53     ); 
     53    );
    5454    return -1;
    5555  }
  • schedsim/shell/shared/main_taskwakeafter.c

    r05a8dca rb38dbcc  
    3131  unsigned long        tmp;
    3232  rtems_id             self;
    33  
     33
    3434  CHECK_RTEMS_IS_UP();
    3535
     
    5151   */
    5252  printf( "Task (0x%08x) sleeping for %d ticks\n", self, ticks );
    53  
     53
    5454  status = rtems_task_wake_after( ticks );
    5555  if ( status != RTEMS_SUCCESSFUL ) {
     
    5959      argv[1],
    6060      rtems_status_text( status )
    61     ); 
     61    );
    6262    return -1;
    6363  }
  • schedsim/shell/shared/schedsim_disable_dispatch.c

    r05a8dca rb38dbcc  
    3333  return allow_dispatch;
    3434}
    35 
  • schedsim/shell/shared/shell_makeargs.c

    r05a8dca rb38dbcc  
    2727  char *ch;
    2828  int   status = 0;
    29  
     29
    3030  argc = 0;
    3131  ch = commandLine;
     
    6464  return status;
    6565}
    66 
Note: See TracChangeset for help on using the changeset viewer.