Changeset 28352fae in rtems


Ignore:
Timestamp:
Nov 29, 2009, 1:51:53 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
32b8506
Parents:
18daff9
Message:

Whitespace removal.

Location:
cpukit
Files:
68 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    r18daff9 r28352fae  
    2525 *         used remarkably reliably by most applications.
    2626 */
    27  
    28 /* 
     27
     28/*
    2929 *  COPYRIGHT (c) 1989-2009.
    3030 *  On-Line Applications Research Corporation (OAR).
     
    7777
    7878#ifdef CONFIGURE_INIT
    79 rtems_libio_init_functions_t rtems_libio_init_helper = 
     79rtems_libio_init_functions_t rtems_libio_init_helper =
    8080    #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
    8181    NULL;
     
    8484    #endif
    8585
    86 rtems_libio_supp_functions_t rtems_libio_supp_helper = 
     86rtems_libio_supp_functions_t rtems_libio_supp_helper =
    8787    #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
    8888    NULL;
     
    9191    #endif
    9292
    93 rtems_fs_init_functions_t    rtems_fs_init_helper = 
     93rtems_fs_init_functions_t    rtems_fs_init_helper =
    9494    #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
    9595    NULL;
     
    110110
    111111/**
    112  *  This macro defines the number of POSIX file descriptors allocated 
     112 *  This macro defines the number of POSIX file descriptors allocated
    113113 *  and managed by libio.  These are the "integer" file descriptors that
    114114 *  are used by calls like open(2) and read(2).
     
    259259  #warning "STACK_CHECKER_ON deprecated -- use CONFIGURE_STACK_CHECKER_ENABLED"
    260260#endif
    261  
     261
    262262/**
    263263 *  This configures the stack checker user extension.
     
    468468   *  This configures the malloc family plugin which dirties memory
    469469   *  allocated.  This is helpful for finding unitialized data structure
    470    *  problems. 
     470   *  problems.
    471471   */
    472472  rtems_malloc_dirtier_t *rtems_malloc_dirty_helper =
     
    495495
    496496/**
    497  *  This macro accounts for how memory for a set of configured objects is 
    498  *  allocated from the Executive Workspace. 
     497 *  This macro accounts for how memory for a set of configured objects is
     498 *  allocated from the Executive Workspace.
    499499 *
    500500 *  NOTE: It does NOT attempt to address the more complex case of unlimited
     
    772772  #endif
    773773  #ifdef CONFIGURE_INIT
    774     const rtems_bdbuf_config rtems_bdbuf_configuration = { 
     774    const rtems_bdbuf_config rtems_bdbuf_configuration = {
    775775      CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS,
    776776      CONFIGURE_BDBUF_MAX_WRITE_BLOCKS,
     
    12541254  /**
    12551255   *  This is the maximum number of Ada tasks which can be concurrently
    1256    *  in existence.  Twenty (20) are required to run all tests in the 
     1256   *  in existence.  Twenty (20) are required to run all tests in the
    12571257   *  ACATS (formerly ACVC).
    12581258   */
     
    16661666    CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_ADA_TASKS + \
    16671667    CONFIGURE_MAXIMUM_ITRON_TASKS \
    1668    ) 
     1668   )
    16691669
    16701670/**
     
    18161816        CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS ),
    18171817    CONFIGURE_MEMORY_FOR_ITRON_PORTS( CONFIGURE_MAXIMUM_ITRON_PORTS ),
    1818     CONFIGURE_MEMORY_FOR_ITRON_MEMORY_POOLS( 
     1818    CONFIGURE_MEMORY_FOR_ITRON_MEMORY_POOLS(
    18191819        CONFIGURE_MAXIMUM_ITRON_MEMORY_POOLS ),
    18201820    CONFIGURE_MEMORY_FOR_ITRON_FIXED_MEMORY_POOLS(
     
    19151915   *        include the full configuration table.
    19161916   */
    1917   uint32_t rtems_minimum_stack_size = 
     1917  uint32_t rtems_minimum_stack_size =
    19181918    CONFIGURE_MINIMUM_TASK_STACK_SIZE;
    19191919
     
    19811981        defined(CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE)
    19821982      void _POSIX_Threads_Initialize_user_threads_body(void);
    1983       void (*_POSIX_Threads_Initialize_user_threads_p)(void) = 
     1983      void (*_POSIX_Threads_Initialize_user_threads_p)(void) =
    19841984                _POSIX_Threads_Initialize_user_threads_body;
    19851985    #else
     
    19981998        defined(CONFIGURE_ITRON_HAS_OWN_INIT_TASK_TABLE)
    19991999      void _ITRON_Task_Initialize_user_tasks_body(void);
    2000       void (*_ITRON_Initialize_user_tasks_p)(void) = 
     2000      void (*_ITRON_Initialize_user_tasks_p)(void) =
    20012001                _ITRON_Task_Initialize_user_tasks_body;
    20022002    #else
     
    21002100 *  It is such a common newbie error to leave it out.  Maybe this
    21012101 *  will put an end to it.
    2102  * 
    2103  *  NOTE: If you are using the timer driver, it is considered 
     2102 *
     2103 *  NOTE: If you are using the timer driver, it is considered
    21042104 *        mutually exclusive with the clock driver because the
    21052105 *        drivers are assumed to use the same "timer" hardware
     
    21372137  #error "Maximum priority is not 1 less than a power of 2 between 4 and 256"
    21382138#endif
    2139    
     2139
    21402140#if (CONFIGURE_MAXIMUM_PRIORITY > PRIORITY_DEFAULT_MAXIMUM)
    21412141  #error "Maximum priority configured higher than supported by target."
  • cpukit/sapi/include/rtems/chain.h

    r18daff9 r28352fae  
    88 *
    99 */
    10  
     10
    1111/*
    1212 *  COPYRIGHT (c) 1989-2008.
  • cpukit/sapi/include/rtems/config.h

    r18daff9 r28352fae  
    22 * @file rtems/config.h
    33 */
    4  
     4
    55/*
    66 *  This include file contains the table of user defined configuration
     
    8181  uint32_t            maximum_proxies;
    8282
    83   /** The MPCI Receive server is assumed to have a stack of at least 
     83  /** The MPCI Receive server is assumed to have a stack of at least
    8484   *  minimum stack size.  This field specifies the amount of extra
    8585   *  stack this task will be given in bytes.
     
    155155  /** If this element is TRUE, then RTEMS will zero the Executive Workspace.
    156156   *  When this element is FALSE, it is assumed that the BSP or invoking
    157    *  environment has ensured that memory was cleared before RTEMS was 
     157   *  environment has ensured that memory was cleared before RTEMS was
    158158   *  invoked.
    159159   */
     
    226226        (Configuration.idle_task_stack_size)
    227227
    228 /* XXX We need to get this from the generated table 
     228/* XXX We need to get this from the generated table
    229229 *     since BSPs need it before the pointer is set.
    230230 *     Eventually all should be done this way.
     
    240240#define rtems_configuration_get_stack_free_hook() \
    241241        (Configuration.stack_free_hook)
    242  
     242
    243243/**
    244244  * This macro assists in accessing the field which indicates whether
  • cpukit/sapi/include/rtems/extension.h

    r18daff9 r28352fae  
    66 * @brief User Extensions API.
    77 */
    8  
     8
    99/*
    1010 *  COPYRIGHT (c) 1989-2008.
     
    5353 * @brief The User Extensions Manager allows the application developer to
    5454 * augment the executive by allowing them to supply extension routines which
    55  * are invoked at critical system events. 
     55 * are invoked at critical system events.
    5656 *
    5757 * @section ClassicUserExtensionsSets Extension Sets
     
    153153 * - Task context switch
    154154 * - Post task context switch
    155  * - Task begins to execute 
     155 * - Task begins to execute
    156156 *
    157157 * At the following system events, the extensions are invoked in reverse order:
    158158 *
    159159 * - Task deletion
    160  * - Fatal error detection 
     160 * - Fatal error detection
    161161 *
    162162 * At these system events, the extensions are invoked in reverse order to
  • cpukit/sapi/include/rtems/fatal.h

    r18daff9 r28352fae  
    22 * @file rtems/fatal.h
    33 */
    4  
     4
    55/*
    66 *  This include file contains constants and prototypes related
  • cpukit/sapi/include/rtems/init.h

    r18daff9 r28352fae  
    1414 *     + shutdown the RTEMS executive
    1515 */
    16  
     16
    1717/*
    1818 *  COPYRIGHT (c) 1989-2008.
  • cpukit/sapi/include/rtems/io.h

    r18daff9 r28352fae  
    66 * @brief Classic Input/Output Manager API.
    77 */
    8  
     8
    99/*
    1010 *  COPYRIGHT (c) 1989-2008.
  • cpukit/sapi/include/rtems/sptables.h

    r18daff9 r28352fae  
    55 *  used when in a single processor configuration.
    66 */
    7  
     7
    88/*
    99 *  COPYRIGHT (c) 1989-1999.
  • cpukit/sapi/src/extensioncreate.c

    r18daff9 r28352fae  
    66 * @brief User Extensions Implementation.
    77 */
    8  
     8
    99/*
    1010 *  COPYRIGHT (c) 1989-2007.
  • cpukit/sapi/src/extensiondelete.c

    r18daff9 r28352fae  
    66 * @brief User Extensions Implementation.
    77 */
    8  
     8
    99/*
    1010 *  COPYRIGHT (c) 1989-2007.
  • cpukit/sapi/src/extensionident.c

    r18daff9 r28352fae  
    66 * @brief User Extensions Implementation.
    77 */
    8  
     8
    99/*
    1010 *  COPYRIGHT (c) 1989-2007.
  • cpukit/sapi/src/io.c

    r18daff9 r28352fae  
    6868   */
    6969
    70   _IO_Driver_address_table = (rtems_driver_address_table *) 
     70  _IO_Driver_address_table = (rtems_driver_address_table *)
    7171      _Workspace_Allocate_or_fatal_error(
    7272        sizeof( rtems_driver_address_table ) * ( number_of_drivers )
  • cpukit/sapi/src/ioregisterdriver.c

    r18daff9 r28352fae  
    66 * @brief Classic Input/Output Manager implementation.
    77 */
    8  
     8
    99/*
    1010 *  COPYRIGHT (c) 1989-2009.
     
    4242  rtems_device_major_number n = _IO_Number_of_drivers;
    4343  rtems_device_major_number m = 0;
    44  
     44
    4545  /* major is error checked by caller */
    4646
  • cpukit/score/cpu/c4x/cpu.c

    r18daff9 r28352fae  
    4949 *
    5050 */
    51  
     51
    5252void _CPU_ISR_install_raw_handler(
    5353  uint32_t    vector,
     
    6262   *  table used by the CPU to dispatch interrupt handlers.
    6363   */
    64    
     64
    6565  ittp = c4x_get_ittp();
    6666  *old_handler = ittp[ vector ];
     
    7171
    7272#define C4X_CACHE       1
    73 #define C4X_BASE_ST     (C4X_CACHE==1) ? 0x4800 : 0x4000 
     73#define C4X_BASE_ST     (C4X_CACHE==1) ? 0x4800 : 0x4000
    7474
    7575void _CPU_Context_Initialize(
  • cpukit/score/cpu/c4x/rtems/score/c4x.h

    r18daff9 r28352fae  
    3434 *  of the family.
    3535 */
    36  
     36
    3737#if defined(_C30)
    3838#define CPU_MODEL_NAME  "C30"
     
    4040#elif defined(_C31)
    4141#define CPU_MODEL_NAME  "C31"
    42  
     42
    4343#elif defined(_C32)
    4444#define CPU_MODEL_NAME  "C32"
    45  
     45
    4646#elif defined(_C33)
    4747#define CPU_MODEL_NAME  "C33"
    48  
     48
    4949#elif defined(_C40)
    5050#define CPU_MODEL_NAME  "C40"
    51  
     51
    5252#elif defined(_C44)
    5353#define CPU_MODEL_NAME  "C44"
    54  
     54
    5555#else
    56  
     56
    5757#error "Unsupported CPU Model"
    58  
     58
    5959#endif
    6060
     
    7070 *  applications.  In addition, the calling conventions require that
    7171 *  only a few extended registers be preserved across subroutine calls.
    72  *  The overhead of including these few registers in the basic 
     72 *  The overhead of including these few registers in the basic
    7373 *  context is small compared to the overhead of managing the notion
    7474 *  of separate floating point contexts.  So we decided to pretend that
     
    157157#define c4x_global_interrupts_get() \
    158158  (cpu_st_get() & C4X_ST_GIE)
    159  
     159
    160160#define c4x_global_interrupts_disable() \
    161161  cpu_st_bit_clear(C4X_ST_GIE)
     
    192192static inline void c3x_set_if(unsigned int _if_value)
    193193{
    194   __asm__( "ldi %0, if" : : "g" (_if_value) : "if", "cc"); 
     194  __asm__( "ldi %0, if" : : "g" (_if_value) : "if", "cc");
    195195}
    196196
     
    212212static inline void c3x_set_ie(unsigned int _ie_value)
    213213{
    214   __asm__ volatile ( "ldi %0, ie" : : "g" (_ie_value) : "ie", "cc"); 
     214  __asm__ volatile ( "ldi %0, ie" : : "g" (_ie_value) : "ie", "cc");
    215215}
    216216
     
    223223 *  c3x_ie_mask_set     - sets a specific set of the IE mask
    224224 */
    225  
     225
    226226#define c3x_ie_mask_all( _isr_cookie ) \
    227227  do { \
     
    281281static inline void c4x_set_iif(unsigned int _iif_value)
    282282{
    283   __asm__( "ldi %0, iif" : : "g" (_iif_value) : "iif", "cc"); 
     283  __asm__( "ldi %0, iif" : : "g" (_iif_value) : "iif", "cc");
    284284}
    285285
     
    301301static inline void c4x_set_iie(unsigned int _iie_value)
    302302{
    303   __asm__( "ldi %0, iie" : : "g" (_iie_value) : "iie", "cc"); 
     303  __asm__( "ldi %0, iie" : : "g" (_iie_value) : "iie", "cc");
    304304}
    305305
     
    332332
    333333static inline void * c4x_get_ittp(void)
    334 { 
     334{
    335335  register unsigned int _if_value;
    336  
     336
    337337  __asm__( "ldi if, %0" : "=r" (_if_value) );
    338   return (void *)((_if_value & 0xffff0000) >> 8); 
    339 } 
     338  return (void *)((_if_value & 0xffff0000) >> 8);
     339}
    340340
    341341static inline void c4x_set_ittp(void *_ittp_value)
    342 { 
     342{
    343343  unsigned int _if_value;
    344344  unsigned int _ittp_field;
     
    357357  c3x_set_if( _if_value );
    358358#endif
    359 } 
     359}
    360360
    361361#endif /* ifndef ASM */
  • cpukit/score/cpu/c4x/rtems/score/cpu.h

    r18daff9 r28352fae  
    4949 *  C4x Specific Information:
    5050 *
    51  *  We might as well try to inline this code until there is a 
     51 *  We might as well try to inline this code until there is a
    5252 *  code space problem.
    5353 */
     
    165165/*
    166166 *  Does the RTEMS invoke the user's ISR with the vector number and
    167  *  a pointer to the saved interrupt frame (1) or just the vector 
     167 *  a pointer to the saved interrupt frame (1) or just the vector
    168168 *  number (0)?
    169169 *
     
    195195 *  C4x Specific Information:
    196196 *
    197  *  See c4x.h for more details but the bottom line is that the 
     197 *  See c4x.h for more details but the bottom line is that the
    198198 *  few extended registers required to be preserved across subroutines
    199199 *  calls are considered part of the integer context.  This eliminates
     
    243243 *  C4x Specific Information:
    244244 *
    245  *  There is no known reason to make the IDLE task floating point and 
     245 *  There is no known reason to make the IDLE task floating point and
    246246 *  no point in wasting the memory or increasing the context switch
    247247 *  time for the IDLE task.
     
    277277 *  C4x Specific Information:
    278278 *
    279  *  There is no reason to avoid the deferred FP switch logic on this 
     279 *  There is no reason to avoid the deferred FP switch logic on this
    280280 *  CPU family.
    281281 */
     
    435435 *  From email with Michael Hayes:
    436436 *  > > But what are the rules for what is passed in what registers?
    437  * 
     437 *
    438438 *  Args are passed in the following registers (in order):
    439  * 
     439 *
    440440 *  AR2, R2, R3, RC, RS, RE
    441  * 
     441 *
    442442 *  However, the first and second floating point values are always in R2
    443443 *  and R3 (and all other floats are on the stack).  Structs are always
     
    445445 *  previous argument is passed on the stack so that its address can be
    446446 *  taken for the stdargs macros.
    447  * 
     447 *
    448448 *   > > What is assumed to be preserved across calls?
    449  * 
    450  *  AR3, AR4, AR5, AR6, AR7   
     449 *
     450 *  AR3, AR4, AR5, AR6, AR7
    451451 *  R4, R5, R8              (using STI/LDI)
    452452 *  R6, R7                  (using STF/LDF)
    453  * 
     453 *
    454454 *   > > What is assumed to be scratch registers?
    455  * 
     455 *
    456456 *  R0, R1, R2, R3, AR0, AR1, AR2, IR0, IR1, BK, RS, RE, RC, R9, R10, R11
    457  * 
     457 *
    458458 *  Based on this information, the task specific context is quite small
    459459 *  but the interrupt context is much larger.  In fact, it could
     
    628628 *  C4x Specific Information:
    629629 *
    630  *  Based on the information provided in section 7.6.1 (p. 7-26) 
     630 *  Based on the information provided in section 7.6.1 (p. 7-26)
    631631 *  titled "TMS320C30 and TMS320C31 Interrupt Vector Table" and section
    632632 *  7.6.2 "TMS320C32 Interrupt Vector Table" of the TMS32C3x User's
     
    994994 *  processor family that is better than the generic algorithm.
    995995 *  Almost certainly, a hand-optimized assembly version of the
    996  *  generic algorithm could be written although it is not 
     996 *  generic algorithm could be written although it is not
    997997 *  worth the development effort at this time.
    998998 */
     
    10661066 *  _CPU_ISR_install_raw_handler
    10671067 *
    1068  *  This routine installs a "raw" interrupt handler directly into the 
     1068 *  This routine installs a "raw" interrupt handler directly into the
    10691069 *  processor's vector table.
    10701070 *
     
    10731073 *  XXXanswer
    10741074 */
    1075  
     1075
    10761076void _CPU_ISR_install_raw_handler(
    10771077  uint32_t    vector,
     
    12001200 *  XXXanswer
    12011201 */
    1202  
     1202
    12031203static inline uint32_t CPU_swap_u32(
    12041204  uint32_t value
     
    12061206{
    12071207  uint32_t   byte1, byte2, byte3, byte4, swapped;
    1208  
     1208
    12091209  byte4 = (value >> 24) & 0xff;
    12101210  byte3 = (value >> 16) & 0xff;
    12111211  byte2 = (value >> 8)  & 0xff;
    12121212  byte1 =  value        & 0xff;
    1213  
     1213
    12141214  swapped = (byte1 << 24) | (byte2 << 16) | (byte3 << 8) | byte4;
    12151215  return( swapped );
  • cpukit/score/cpu/c4x/rtems/tic4x/c4xio.h

    r18daff9 r28352fae  
    9191 *  IO Flags
    9292 *
    93  *  NOTE: iof on c3x, iiof on c4x 
     93 *  NOTE: iof on c3x, iiof on c4x
    9494 */
    9595
  • cpukit/score/cpu/m32c/context_init.c

    r18daff9 r28352fae  
    5757    frame->flg |= 0x40;
    5858  frame->a0 = 0x01020304;
    59   frame->a1 =0xa1a2a3a4; 
     59  frame->a1 =0xa1a2a3a4;
    6060  frame->r0r2 = 0;
    6161  frame->r1r3 = 0;
  • cpukit/score/cpu/m32c/cpu.c

    r18daff9 r28352fae  
    3939 *  XXX document implementation including references if appropriate
    4040 */
    41  
     41
    4242uint32_t   _CPU_ISR_Get_level( void )
    4343{
     
    5656 *  XXX document implementation including references if appropriate
    5757 */
    58  
     58
    5959void _CPU_ISR_install_raw_handler(
    6060  uint32_t    vector,
  • cpukit/score/cpu/m32c/cpu_asm.c

    r18daff9 r28352fae  
    9595   *  LABEL "exit interrupt (simple case):
    9696   *  #if ( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE )
    97    *    if outermost interrupt 
     97   *    if outermost interrupt
    9898   *      restore stack
    9999   *  #endif
  • cpukit/score/cpu/m32c/rtems/score/cpu.h

    r18daff9 r28352fae  
    1414 *  + Anywhere there is an XXX, it should be replaced
    1515 *    with information about the CPU family being ported to.
    16  * 
     16 *
    1717 *  + At the end of each comment section, there is a heading which
    1818 *    says "Port Specific Information:".  When porting to RTEMS,
     
    171171/**
    172172 *  Does the RTEMS invoke the user's ISR with the vector number and
    173  *  a pointer to the saved interrupt frame (1) or just the vector 
     173 *  a pointer to the saved interrupt frame (1) or just the vector
    174174 *  number (0)?
    175175 *
     
    198198 */
    199199
    200 /** 
     200/**
    201201 *  @def CPU_SOFTWARE_FP
    202202 *
     
    206206 *
    207207 *  This feature conditional is used to indicate whether or not there
    208  *  is software implemented floating point that must be context 
     208 *  is software implemented floating point that must be context
    209209 *  switched.  The determination of whether or not this applies
    210210 *  is very tool specific and the state saved/restored is also
     
    484484 *
    485485 *  @param[in] _context is the thread context area to access
    486  * 
     486 *
    487487 *  @return This method returns the stack pointer.
    488488 */
     
    497497 */
    498498typedef struct {
    499     /** This field is a hint that a port will have a number of integer 
     499    /** This field is a hint that a port will have a number of integer
    500500     *  registers that need to be saved when an interrupt occurs or
    501501     *  when a context switch occurs at the end of an ISR.
     
    525525/**
    526526 *  @ingroup CPUInterrupt
    527  *  This variable points to the lowest physical address of the interrupt 
     527 *  This variable points to the lowest physical address of the interrupt
    528528 *  stack.
    529529 */
     
    532532/**
    533533 *  @ingroup CPUInterrupt
    534  *  This variable points to the lowest physical address of the interrupt 
     534 *  This variable points to the lowest physical address of the interrupt
    535535 *  stack.
    536536 */
     
    613613 *  @note  This does not have to be a power of 2 although it should be
    614614 *         a multiple of 2 greater than or equal to 2.  The requirement
    615  *         to be a multiple of 2 is because the heap uses the least 
     615 *         to be a multiple of 2 is because the heap uses the least
    616616 *         significant field of the front and back flags to indicate
    617617 *         that a block is in use or free.  So you do not want any odd
     
    903903 *  @defgroup CPUBitfield Processor Dependent Bitfield Manipulation
    904904 *
    905  *  This set of routines are used to implement fast searches for 
     905 *  This set of routines are used to implement fast searches for
    906906 *  the most important ready task.
    907907 */
     
    928928 *  @ingroup CPUBitfield
    929929 *  This routine sets @a _output to the bit number of the first bit
    930  *  set in @a _value.  @a _value is of CPU dependent type 
     930 *  set in @a _value.  @a _value is of CPU dependent type
    931931 *  @a Priority_Bit_map_control.  This type may be either 16 or 32 bits
    932932 *  wide although only the 16 least significant bits will be used.
     
    971971          _value >>=8
    972972          _number = 8;
    973  
     973
    974974        if _value > 0x0000f
    975975          _value >=8
    976976          _number += 4
    977  
     977
    978978        _number += bit_set_table[ _value ]
    979979@endverbatim
    980  
     980
    981981 *    where bit_set_table[ 16 ] has values which indicate the first
    982982 *      bit set
     
    10501050/**
    10511051 *  @ingroup CPUInterrupt
    1052  *  This routine installs a "raw" interrupt handler directly into the 
     1052 *  This routine installs a "raw" interrupt handler directly into the
    10531053 *  processor's vector table.
    10541054 *
     
    11761176{
    11771177  uint32_t byte1, byte2, byte3, byte4, swapped;
    1178  
     1178
    11791179  byte4 = (value >> 24) & 0xff;
    11801180  byte3 = (value >> 16) & 0xff;
    11811181  byte2 = (value >> 8)  & 0xff;
    11821182  byte1 =  value        & 0xff;
    1183  
     1183
    11841184  swapped = (byte1 << 24) | (byte2 << 16) | (byte3 << 8) | byte4;
    11851185  return swapped;
  • cpukit/score/cpu/m32c/rtems/score/m32c.h

    r18daff9 r28352fae  
    11/*
    2  *  This file sets up basic CPU dependency settings based on 
     2 *  This file sets up basic CPU dependency settings based on
    33 *  compiler settings.  For example, it can determine if
    44 *  floating point is available.  This particular implementation
     
    3333 *  to.
    3434 */
    35  
     35
    3636#if defined(rtems_multilib)
    3737/*
    38  *  Figure out all CPU Model Feature Flags based upon compiler 
    39  *  predefines. 
     38 *  Figure out all CPU Model Feature Flags based upon compiler
     39 *  predefines.
    4040 */
    4141
     
    4444
    4545#elif defined(__m32c__)
    46  
     46
    4747#define CPU_MODEL_NAME  "m32c"
    4848#define M32C_HAS_FPU    0
    49  
     49
    5050#else
    51  
     51
    5252#error "Unsupported CPU Model"
    53  
     53
    5454#endif
    5555
  • cpukit/score/cpu/m32c/varvects.h

    r18daff9 r28352fae  
    44All rights reserved.
    55
    6 Redistribution and use in source and binary forms, with or without 
    7 modification, are permitted provided that the following conditions are met: 
     6Redistribution and use in source and binary forms, with or without
     7modification, are permitted provided that the following conditions are met:
    88
    9     Redistributions of source code must retain the above copyright 
     9    Redistributions of source code must retain the above copyright
    1010    notice, this list of conditions and the following disclaimer.
    1111
     
    1414    documentation and/or other materials provided with the distribution.
    1515
    16     The name of Red Hat Incorporated may not be used to endorse 
    17     or promote products derived from this software without specific 
     16    The name of Red Hat Incorporated may not be used to endorse
     17    or promote products derived from this software without specific
    1818    prior written permission.
    1919
    20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
    21 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
     20THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     21AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    2222IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    2323DISCLAIMED.  IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY
    2424DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    2525(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    26 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 
     26LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2727ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    2828(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    29 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     29SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    3030
    3131*/
  • cpukit/score/include/rtems/debug.h

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  rtems/debug.h
    33 *
  • cpukit/score/include/rtems/system.h

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  rtems/system.h
    33 *
     
    4646#endif
    4747
    48 /** 
     48/**
    4949 *  The following ensures that all data is declared in the space
    5050 *  of the initialization routine for either the Initialization Manager
     
    6060#endif
    6161
    62 /** 
     62/**
    6363 *  The following ensures that all data is declared in the space
    6464 *  of the initialization routine for either the Initialization Manager
     
    7474#endif
    7575
    76 /** 
     76/**
    7777 *  The following ensures that all data is declared in the space
    7878 *  of the initialization routine for either the Initialization Manager
     
    8888#endif
    8989
    90 /** 
     90/**
    9191 *  The following ensures that all data is declared in the space
    9292 *  of the initialization routine for either the Initialization Manager
     
    181181#include <rtems/score/cpu.h>        /* processor specific information */
    182182
    183 /** 
     183/**
    184184 *  This macro is used to obtain the offset of a field in a structure.
    185185 */
  • cpukit/score/src/apimutexlock.c

    r18daff9 r28352fae  
    2121)
    2222{
    23   ISR_Level level; 
     23  ISR_Level level;
    2424
    2525  _ISR_Disable( level );
  • cpukit/score/src/corebarrierwait.c

    r18daff9 r28352fae  
    6161  the_barrier->number_of_waiting_threads++;
    6262  if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
    63     if ( the_barrier->number_of_waiting_threads == 
     63    if ( the_barrier->number_of_waiting_threads ==
    6464         the_barrier->Attributes.maximum_count) {
    6565      executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
     
    6868      return;
    6969    }
    70   } 
     70  }
    7171
    7272  _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue );
  • cpukit/score/src/coremsg.c

    r18daff9 r28352fae  
    6363  the_message_queue->maximum_message_size       = maximum_message_size;
    6464  _CORE_message_queue_Set_notify( the_message_queue, NULL, NULL );
    65  
     65
    6666  /*
    67    *  Round size up to multiple of a pointer for chain init and 
     67   *  Round size up to multiple of a pointer for chain init and
    6868   *  check for overflow on adding overhead to each message.
    6969   */
     
    7373    allocated_message_size &= ~(sizeof(uint32_t) - 1);
    7474  }
    75    
     75
    7676  if (allocated_message_size < maximum_message_size)
    7777    return false;
     
    7979  /*
    8080   *  Calculate how much total memory is required for message buffering and
    81    *  check for overflow on the multiplication. 
     81   *  check for overflow on the multiplication.
    8282   */
    8383  message_buffering_required = (size_t) maximum_pending_messages *
    8484       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
    85  
     85
    8686  if (message_buffering_required < allocated_message_size)
    8787    return false;
     
    9090   *  Attempt to allocate the message memory
    9191   */
    92   the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 
     92  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
    9393     _Workspace_Allocate( message_buffering_required );
    94  
     94
    9595  if (the_message_queue->message_buffers == 0)
    9696    return false;
    97  
     97
    9898  /*
    9999   *  Initialize the pool of inactive messages, pending messages,
     
    106106    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
    107107  );
    108  
     108
    109109  _Chain_Initialize_empty( &the_message_queue->Pending_messages );
    110  
     110
    111111  _Thread_queue_Initialize(
    112112    &the_message_queue->Wait_queue,
  • cpukit/score/src/coremsgseize.c

    r18daff9 r28352fae  
    7979
    8080    *size_p = the_message->Contents.size;
    81     _Thread_Executing->Wait.count = 
     81    _Thread_Executing->Wait.count =
    8282      _CORE_message_queue_Get_message_priority( the_message );
    8383    _CORE_message_queue_Copy_buffer(
     
    8989    #if !defined(RTEMS_SCORE_COREMSG_ENABLE_BLOCKING_SEND)
    9090      /*
    91        *  There is not an API with blocking sends enabled. 
     91       *  There is not an API with blocking sends enabled.
    9292       *  So return immediately.
    9393       */
     
    120120       */
    121121      _CORE_message_queue_Set_message_priority(
    122         the_message, 
     122        the_message,
    123123        the_thread->Wait.count
    124124      );
  • cpukit/score/src/coremsgsubmit.c

    r18daff9 r28352fae  
    109109        _CORE_message_queue_Allocate_message_buffer( the_message_queue );
    110110
    111     #if defined(RTEMS_DEBUG) 
     111    #if defined(RTEMS_DEBUG)
    112112      /*
    113113       *  NOTE: If the system is consistent, this error should never occur.
  • cpukit/score/src/coremutex.c

    r18daff9 r28352fae  
    6565    if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
    6666         _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
    67      
    68       if ( _Thread_Executing->current_priority < 
     67
     68      if ( _Thread_Executing->current_priority <
    6969             the_mutex->Attributes.priority_ceiling )
    7070       return CORE_MUTEX_STATUS_CEILING_VIOLATED;
  • cpukit/score/src/coremutexsurrender.c

    r18daff9 r28352fae  
    8585  the_mutex->nest_count--;
    8686
    87   if ( the_mutex->nest_count != 0 ) { 
     87  if ( the_mutex->nest_count != 0 ) {
    8888    /*
    8989     *  All error checking is on the locking side, so if the lock was
  • cpukit/score/src/corerwlockobtainread.c

    r18daff9 r28352fae  
    2727 *
    2828 *  This function waits for the rwlock to become available.  Optionally,
    29  *  a limit may be placed on the duration of the spin. 
     29 *  a limit may be placed on the duration of the spin.
    3030 *
    3131 *  Input parameters:
  • cpukit/score/src/corerwlockobtainwrite.c

    r18daff9 r28352fae  
    2727 *
    2828 *  This function waits for the rwlock to become available.  Optionally,
    29  *  a limit may be placed on the duration of the spin. 
     29 *  a limit may be placed on the duration of the spin.
    3030 *
    3131 *  Input parameters:
  • cpukit/score/src/corerwlockrelease.c

    r18daff9 r28352fae  
    6262          return CORE_RWLOCK_SUCCESSFUL;
    6363        }
    64     }       
     64    }
    6565
    6666    /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */
     
    7575
    7676  next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );
    77    
     77
    7878  if ( next ) {
    7979    if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
     
    9393    while ( 1 ) {
    9494      next = _Thread_queue_First( &the_rwlock->Wait_queue );
    95       if ( !next || 
     95      if ( !next ||
    9696           next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
    9797        return CORE_RWLOCK_SUCCESSFUL;
  • cpukit/score/src/coresemseize.c

    r18daff9 r28352fae  
    6565  }
    6666
    67   /* 
     67  /*
    6868   *  If the semaphore was not available and the caller was not willing
    6969   *  to block, then return immediately with a status indicating that
  • cpukit/score/src/corespinlockrelease.c

    r18daff9 r28352fae  
    5151      _ISR_Enable( level );
    5252      return CORE_SPINLOCK_NOT_LOCKED;
    53     } 
     53    }
    5454
    5555    /*
     
    5959      _ISR_Enable( level );
    6060      return CORE_SPINLOCK_NOT_HOLDER;
    61     } 
    62    
     61    }
     62
    6363    /*
    6464     *  Let it be unlocked.
  • cpukit/score/src/corespinlockwait.c

    r18daff9 r28352fae  
    2727 *
    2828 *  This function waits for the spinlock to become available.  Optionally,
    29  *  a limit may be placed on the duration of the spin. 
     29 *  a limit may be placed on the duration of the spin.
    3030 *
    3131 *  Input parameters:
     
    4949
    5050  _ISR_Disable( level );
    51     if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) && 
     51    if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) &&
    5252         (the_spinlock->holder == _Thread_Executing->Object.id) ) {
    5353      _ISR_Enable( level );
     
    9090       *  another thread must be able to run while spinning.  We are
    9191       *  not blocking so that implies we are at least preemptible
    92        *  and possibly time-sliced. 
    93        * 
     92       *  and possibly time-sliced.
     93       *
    9494       *  So first, we will enable interrpts to allow for them to happen.
    9595       *  Then we will "flash" the thread dispatching critical section
    9696       *  so other threads have a chance to run.
    97        * 
     97       *
    9898       *  A spinlock cannot be deleted while it is being used so we are
    9999       *  safe from deletion.
     
    105105       _Thread_Enable_dispatch();
    106106       /* Another thread could get dispatched here */
    107        
     107
    108108       /* Reenter the critical sections so we can attempt the lock again. */
    109109       _Thread_Disable_dispatch();
  • cpukit/score/src/heapwalk.c

    r18daff9 r28352fae  
    367367        next_block
    368368      );
    369      
     369
    370370      return false;
    371371    }
     
    379379        block_size
    380380      );
    381      
     381
    382382      return false;
    383383    }
     
    392392        min_block_size
    393393      );
    394      
     394
    395395      return false;
    396396    }
     
    404404        next_block
    405405      );
    406      
    407       return false;
    408     }
    409    
     406
     407      return false;
     408    }
     409
    410410    if ( !_Heap_Is_prev_used( next_block ) ) {
    411411      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
  • cpukit/score/src/mpci.c

    r18daff9 r28352fae  
    123123    _MPCI_Receive_server_tcb,
    124124    NULL,        /* allocate the stack */
    125     _Stack_Minimum() + 
     125    _Stack_Minimum() +
    126126      CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK +
    127127      _Configuration_MP_table->extra_mpci_receive_server_stack,
  • cpukit/score/src/objectextendinformation.c

    r18daff9 r28352fae  
    9595   * generate a fatal error depending on auto-extending being active.
    9696   */
    97  
     97
    9898  block_size = information->allocation_size * information->size;
    9999  if ( information->auto_extend ) {
     
    104104    new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
    105105  }
    106  
     106
    107107  /*
    108108   *  If the index_base is the maximum we need to grow the tables.
     
    153153      return;
    154154    }
    155    
     155
    156156    /*
    157157     *  Break the block into the various sections.
  • cpukit/score/src/objectget.c

    r18daff9 r28352fae  
    6464   *
    6565   *  If the Id matches the api, class, and node but index portion is 0,
    66    *  then the subtraction will underflow and the addition of 1 will 
     66   *  then the subtraction will underflow and the addition of 1 will
    6767   *  result in a 0 index.  The zeroth element in the local_table is
    6868   *  always NULL.
  • cpukit/score/src/pheapresizeblock.c

    r18daff9 r28352fae  
    3636
    3737  _RTEMS_Lock_allocator();
    38     status = _Heap_Resize_block( 
     38    status = _Heap_Resize_block(
    3939      the_heap, starting_address, size, &old_mem_size, &avail_mem_size );
    4040  _RTEMS_Unlock_allocator();
  • cpukit/score/src/pheapwalk.c

    r18daff9 r28352fae  
    3737   * then it is forbidden to lock a mutex.  But since we are inside
    3838   * a critical section, it should be safe to walk it unlocked.
    39    * 
     39   *
    4040   * NOTE: Dispatching is also disabled during initialization.
    4141   */
  • cpukit/score/src/threadclearstate.c

    r18daff9 r28352fae  
    7979         *  context switch.
    8080         *
    81          *  Normal case: 
     81         *  Normal case:
    8282         *    If the current thread is preemptible, then we need to do
    8383         *    a context switch.
  • cpukit/score/src/threadget.c

    r18daff9 r28352fae  
    5757  Objects_Information *information;
    5858  Thread_Control      *tp = (Thread_Control *) 0;
    59  
     59
    6060  if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {
    6161    _Thread_Disable_dispatch();
     
    6464    goto done;
    6565  }
    66  
     66
    6767  the_api = _Objects_Get_API( id );
    6868  if ( !_Objects_Is_api_valid( the_api ) ) {
     
    7070    goto done;
    7171  }
    72  
     72
    7373  the_class = _Objects_Get_class( id );
    7474  if ( the_class != 1 ) {       /* threads are always first class :) */
     
    7676    goto done;
    7777  }
    78  
     78
    7979  api_information = _Objects_Information_table[ the_api ];
    8080  if ( !api_information ) {
     
    8888    goto done;
    8989  }
    90  
     90
    9191  tp = (Thread_Control *) _Objects_Get( information, id, location );
    92  
     92
    9393done:
    9494  return tp;
  • cpukit/score/src/threadhandler.c

    r18daff9 r28352fae  
    8989
    9090  /*
    91    * Some CPUs need to tinker with the call frame or registers when the 
     91   * Some CPUs need to tinker with the call frame or registers when the
    9292   * thread actually begins to execute for the first time.  This is a
    9393   * hook point where the port gets a shot at doing whatever it requires.
  • cpukit/score/src/threadinitialize.c

    r18daff9 r28352fae  
    215215   *  We assume the Allocator Mutex is locked and dispatching is
    216216   *  enabled when we get here.  We want to be able to run the
    217    *  user extensions with dispatching enabled.  The Allocator 
     217   *  user extensions with dispatching enabled.  The Allocator
    218218   *  Mutex provides sufficient protection to let the user extensions
    219219   *  run safely.
     
    230230    if ( the_thread->API_Extensions[i] )
    231231      _Workspace_Free( the_thread->API_Extensions[i] );
    232  
     232
    233233  if ( extensions_area )
    234234    (void) _Workspace_Free( extensions_area );
  • cpukit/score/src/threadqenqueue.c

    r18daff9 r28352fae  
    7272  /*
    7373   *  If the thread wants to timeout, then schedule its timer.
    74    */ 
     74   */
    7575  if ( timeout ) {
    7676    _Watchdog_Initialize(
     
    8686  /*
    8787   *  Now enqueue the thread per the discipline for this thread queue.
    88    */ 
     88   */
    8989  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
    9090    enqueue_p = _Thread_queue_Enqueue_priority;
  • cpukit/score/src/threadqenqueuefifo.c

    r18daff9 r28352fae  
    6666      return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
    6767    }
    68      
     68
    6969  /*
    7070   *  An interrupt completed the thread's blocking request.
  • cpukit/score/src/timespecaddto.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/timespecaddto.c
    33 */
  • cpukit/score/src/timespecdivide.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/timespecdivide.c
    33 */
  • cpukit/score/src/timespecdividebyinteger.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/timespecdividebyinteger.c
    33 */
  • cpukit/score/src/timespecgreaterthan.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/timespecgreaterthan.c
    33 */
     
    3737  /* ASSERT: lhs->tv_sec == rhs->tv_sec */
    3838  if ( lhs->tv_nsec > rhs->tv_nsec )
    39     return true; 
     39    return true;
    4040
    4141  return false;
  • cpukit/score/src/timespecisvalid.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/timespecisvalid.c
    33 */
  • cpukit/score/src/timespeclessthan.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/timespeclessthan.c
    33 */
     
    3737  /* ASSERT: lhs->tv_sec == rhs->tv_sec */
    3838  if ( lhs->tv_nsec < rhs->tv_nsec )
    39     return true; 
     39    return true;
    4040
    4141  return false;
  • cpukit/score/src/timespecsubtract.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/timespecsubtract.c
    33 */
     
    3333  if (end->tv_nsec < start->tv_nsec) {
    3434    result->tv_sec  = end->tv_sec - start->tv_sec - 1;
    35     result->tv_nsec = 
     35    result->tv_nsec =
    3636      (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
    3737  } else {
  • cpukit/score/src/timespectoticks.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/timespectoticks.c
    33 */
     
    3737  uint32_t  ticks;
    3838
    39   if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 
     39  if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
    4040    return 0;
    4141
  • cpukit/score/src/ts64divide.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/ts64divide.c
    33 */
  • cpukit/score/src/ts64getnanoseconds.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/ts64toticks.c
    33 */
  • cpukit/score/src/ts64toticks.c

    r18daff9 r28352fae  
    1 /** 
     1/**
    22 *  @file  score/src/ts64toticks.c
    33 */
  • cpukit/score/src/userext.c

    r18daff9 r28352fae  
    4646        number_of_extensions * sizeof( User_extensions_Control )
    4747      );
    48  
     48
    4949    memset (
    5050      extension,
     
    5252      number_of_extensions * sizeof( User_extensions_Control )
    5353    );
    54  
     54
    5555    for ( i = 0 ; i < number_of_extensions ; i++ ) {
    5656      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
  • cpukit/score/src/userextaddapiset.c

    r18daff9 r28352fae  
    3737  {
    3838    the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch;
    39     _Chain_Append( 
     39    _Chain_Append(
    4040      &_User_extensions_Switches_list, &the_extension->Switch.Node );
    4141  }
  • cpukit/score/src/userextremoveset.c

    r18daff9 r28352fae  
    3030{
    3131  _Chain_Extract( &the_extension->Node );
    32  
     32
    3333  /*
    3434   * If a switch handler is present, remove it.
  • cpukit/score/src/userextthreadswitch.c

    r18daff9 r28352fae  
    3232  Chain_Node                     *the_node;
    3333  User_extensions_Switch_control *the_extension_switch;
    34  
     34
    3535  for ( the_node = _User_extensions_Switches_list.first ;
    3636        !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
  • cpukit/score/src/watchdogadjusttochain.c

    r18daff9 r28352fae  
    3232  Watchdog_Interval  units = units_arg;
    3333  ISR_Level          level;
    34   Watchdog_Control  *first; 
    35  
     34  Watchdog_Control  *first;
     35
    3636  if ( units <= 0 ) {
    3737    return;
    3838  }
    39  
     39
    4040  _ISR_Disable( level );
    4141
     
    7070
    7171      _ISR_Flash( level );
    72  
     72
    7373      if ( _Chain_Is_empty( header ) )
    7474        break;
  • cpukit/score/src/watchdogreport.c

    r18daff9 r28352fae  
    3232    ((name) ? name : ""),
    3333    ((name) ? " "  : ""),
    34     watch->delta_interval, 
    35     watch->initial, 
     34    watch->delta_interval,
     35    watch->initial,
    3636    watch,
    3737    watch->routine,
  • cpukit/score/src/watchdogtickle.c

    r18daff9 r28352fae  
    5454
    5555  the_watchdog = _Watchdog_First( header );
    56  
     56
    5757  /*
    5858   * For some reason, on rare occasions the_watchdog->delta_interval
     
    6060   * added, on these occasions an event (which usually was supposed
    6161   * to have a timeout of 1 tick would have a delta_interval of 0, which
    62    * would be decremented to 0xFFFFFFFF by the unprotected 
     62   * would be decremented to 0xFFFFFFFF by the unprotected
    6363   * "the_watchdog->delta_interval--;" operation.
    6464   * This would mean the event would not timeout, and also the chain would
     
    6666   * head, rather than at the end.
    6767   * The test "if (the_watchdog->delta_interval != 0)"
    68    * here prevents this from occuring. 
    69    * 
    70    * We were not able to categorically identify the situation that causes 
    71    * this, but proved it to be true empirically.  So this check causes 
     68   * here prevents this from occuring.
     69   *
     70   * We were not able to categorically identify the situation that causes
     71   * this, but proved it to be true empirically.  So this check causes
    7272   * correct behaviour in this circumstance.
    73    * 
     73   *
    7474   * The belief is that a race condition exists whereby an event at the head
    7575   * of the chain is removed (by a pending ISR or higher priority task)
    76    * during the _ISR_Flash( level ); in _Watchdog_Insert, but the watchdog 
    77    * to be inserted has already had its delta_interval adjusted to 0, and 
    78    * so is added to the head of the chain with a delta_interval of 0. 
    79    * 
     76   * during the _ISR_Flash( level ); in _Watchdog_Insert, but the watchdog
     77   * to be inserted has already had its delta_interval adjusted to 0, and
     78   * so is added to the head of the chain with a delta_interval of 0.
     79   *
    8080   * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)
    8181   */
     
    8484    if ( the_watchdog->delta_interval != 0 )
    8585      goto leave;
    86   }     
     86  }
    8787
    8888  do {
Note: See TracChangeset for help on using the changeset viewer.