Changeset 350bba7a in rtems


Ignore:
Timestamp:
Nov 5, 2020, 8:56:16 AM (9 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
7f0379c
Parents:
82811477
git-author:
Sebastian Huber <sebastian.huber@…> (11/05/20 08:56:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/06/20 13:05:53)
Message:

sparc: Add SPARC_INTERRUPT_SOURCE_TO_TRAP()

Update #4171.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/erc32/include/erc32.h

    r82811477 r350bba7a  
    8484 */
    8585
    86 #define ERC32_TRAP_TYPE( _source ) SPARC_ASYNCHRONOUS_TRAP((_source) + 0x10)
     86#define ERC32_TRAP_TYPE( _source ) SPARC_INTERRUPT_SOURCE_TO_TRAP( _source )
    8787
    8888#define ERC32_TRAP_SOURCE( _trap ) SPARC_INTERRUPT_TRAP_TO_SOURCE( _trap )
  • bsps/sparc/leon2/include/leon.h

    r82811477 r350bba7a  
    8181 */
    8282
    83 #define LEON_TRAP_TYPE( _source ) SPARC_ASYNCHRONOUS_TRAP((_source) + 0x10)
     83#define LEON_TRAP_TYPE( _source ) SPARC_INTERRUPT_SOURCE_TO_TRAP( _source )
    8484
    8585#define LEON_TRAP_SOURCE( _trap ) SPARC_INTERRUPT_TRAP_TO_SOURCE( _trap )
  • bsps/sparc/leon3/include/leon.h

    r82811477 r350bba7a  
    4343 */
    4444
    45 #define LEON_TRAP_TYPE( _source ) SPARC_ASYNCHRONOUS_TRAP((_source) + 0x10)
     45#define LEON_TRAP_TYPE( _source ) SPARC_INTERRUPT_SOURCE_TO_TRAP( _source )
    4646
    4747#define LEON_TRAP_SOURCE( _trap ) SPARC_INTERRUPT_TRAP_TO_SOURCE( _trap )
  • cpukit/score/cpu/sparc/include/rtems/score/sparc.h

    r82811477 r350bba7a  
    241241  ( SPARC_REAL_TRAP_NUMBER( _trap ) - 0x10 )
    242242
     243/**
     244 * @brief Maps the interrupt source number to the associated asynchronous trap
     245 *   number.
     246 *
     247 * @param _source is the interrupt source number to map.
     248 *
     249 * @return Returns the asynchronous trap number associated with the interrupt
     250 *   source number.
     251 */
     252#define SPARC_INTERRUPT_SOURCE_TO_TRAP( _source ) \
     253  ( SPARC_ASYNCHRONOUS_TRAP( _source ) + 0x10 )
     254
    243255#ifndef ASM
    244256
Note: See TracChangeset for help on using the changeset viewer.