Changeset e806f13e in rtems


Ignore:
Timestamp:
Jul 3, 2008, 1:30:18 AM (11 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
b9c38ed
Parents:
9aacd70
Message:

2008-07-03 Chris Johns <chrisj@…>

  • c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c: Change to the Chains API.
Location:
c/src/lib/libbsp/powerpc/score603e
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/score603e/ChangeLog

    r9aacd70 re806f13e  
     12008-07-03      Chris Johns <chrisj@rtems.org>
     2
     3        * c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c: Change to
     4        the Chains API.
     5
    162008-05-15      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c

    r9aacd70 re806f13e  
    3838typedef struct
    3939{
    40   Chain_Node          Node;
     40  rtems_chain_node    Node;
    4141  rtems_isr_entry     handler;                  /* isr routine        */
    4242  rtems_vector_number vector;                   /* vector number      */
     
    4646 *        handlers at a later time.
    4747 */
    48   EE_ISR_Type       ISR_Nodes [NUM_LIRQ_HANDLERS];
    49   uint16_t          Nodes_Used;
    50   Chain_Control    ISR_Array  [NUM_LIRQ];
     48  EE_ISR_Type         ISR_Nodes [NUM_LIRQ_HANDLERS];
     49  uint16_t            Nodes_Used;
     50  rtems_chain_control ISR_Array  [NUM_LIRQ];
    5151
    5252/* XXX */
     
    6666
    6767  for (i=0; i <NUM_LIRQ; i++)
    68     Chain_Initialize_empty( &ISR_Array[i] );
     68    rtems_chain_initialize_empty( &ISR_Array[i] );
    6969
    7070  init_irq_data_register();
     
    121121          vec_idx, vector, vector); */
    122122
    123   Chain_Append( &ISR_Array[vec_idx], &ISR_Nodes[index].Node );
     123  rtems_chain_append( &ISR_Array[vec_idx], &ISR_Nodes[index].Node );
    124124
    125125  /*
     
    164164        node = (EE_ISR_Type *)(ISR_Array[ index ].first);
    165165
    166         if ( _Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {
     166        if ( rtems_chain_is_tail( &ISR_Array[ index ], (void *)node ) ) {
    167167          printk"ERROR:: check %d interrupt %02d has no isr\n", check_irq, index);
    168168          value = get_irq_mask();
    169169          printk("        Mask = %02x\n", value);
    170170        }
    171         while ( !_Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {
     171        while ( !rtems_chain_is_tail( &ISR_Array[ index ], (void *)node ) ) {
    172172          (*node->handler)( node->vector );
    173173          node = (EE_ISR_Type *) node->Node.next;
     
    180180  {
    181181    node = (EE_ISR_Type *)(ISR_Array[ index ].first);
    182     if ( _Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {
     182    if ( rtems_chain_is_tail( &ISR_Array[ index ], (void *)node ) ) {
    183183      printk( "ERROR:: interrupt %02x has no isr\n", index);
    184184      value = get_irq_mask();
     
    186186      return;
    187187    }
    188     while ( !_Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {
     188    while ( !rtems_chain_is_tail( &ISR_Array[ index ], (void *)node ) ) {
    189189     (*node->handler)( node->vector );
    190190     node = (EE_ISR_Type *) node->Node.next;
Note: See TracChangeset for help on using the changeset viewer.