Changeset 826fa6b1 in rtems


Ignore:
Timestamp:
May 7, 2012, 11:29:56 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
c424bb5
Parents:
2824e63
git-author:
Joel Sherrill <joel.sherrill@…> (05/07/12 23:29:56)
git-committer:
Joel Sherrill <joel.sherrill@…> (05/09/12 21:55:10)
Message:

Score ISR - Minimize Capabilities When Not Simple Vectored

In particular CPU_INTERRUPT_NUMBER_OF_VECTORS and
CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER are only used on
Simple Vectored Architectures, so do not depend on
them being defined. This disables as much as possible
that is specific to the Simple Vectored Model and
not expected to be used on architectures which use
the Programmable Interrupt Controller model for
interrupt handler vectoring.

Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/include/rtems/rtems/intr.h

    r2824e63 r826fa6b1  
    4949 *  @brief Return type for interrupt handler.
    5050 */
    51 typedef void rtems_isr;
     51typedef ISR_Handler rtems_isr;
    5252
     53#if (CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE)
     54
     55typedef ISR_Handler_entry rtems_isr_entry;
     56
     57#else
    5358/**
    5459 *  @brief Interrupt handler type.
     
    6065             );
    6166
    62 #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
    6367/**
    6468 *  @brief Implementation of the rtems_interrupt_catch directive.
  • cpukit/score/cpu/powerpc/rtems/score/cpu.h

    r2824e63 r826fa6b1  
    44
    55/*
    6  *  COPYRIGHT (c) 1989-2007.
     6 *  COPYRIGHT (c) 1989-2012.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    625625 *  This defines the number of entries in the ISR_Vector_table managed
    626626 *  by RTEMS.
    627  */
    628 
    629 #define CPU_INTERRUPT_NUMBER_OF_VECTORS     (0)
    630 #define CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER (UINT32_MAX)
     627 *
     628 *  NOTE: CPU_INTERRUPT_NUMBER_OF_VECTORS and
     629 *        CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER are only used on
     630 *        Simple Vectored Architectures and thus are not defined
     631 *        for this architecture.
     632 */
    631633
    632634/*
  • cpukit/score/include/rtems/score/isr.h

    r2824e63 r826fa6b1  
    99
    1010/*
    11  *  COPYRIGHT (c) 1989-2006.
     11 *  COPYRIGHT (c) 1989-2012.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    5151typedef void ISR_Handler;
    5252
     53#if (CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE)
     54
     55typedef void * ISR_Handler_entry;
     56
     57#else
    5358/**
    5459 *  Pointer to an ISR Handler
     
    7782#define ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER  CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER
    7883
    79 #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
    8084/**
    8185 *  The following declares the Vector Table.  Application
  • cpukit/score/inline/rtems/score/isr.inl

    r2824e63 r826fa6b1  
    77
    88/*
    9  *  COPYRIGHT (c) 1989-2004.
     9 *  COPYRIGHT (c) 1989-2012.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    2929 */
    3030
     31#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
    3132/**
    3233 *  This function returns true if the vector is a valid vector number
     
    5253  return (handler != NULL);
    5354}
     55#endif
    5456
    5557/**@}*/
Note: See TracChangeset for help on using the changeset viewer.