Changeset d997aa1 in rtems


Ignore:
Timestamp:
Nov 9, 2018, 6:54:31 AM (9 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
685aa28
Parents:
3faa8459
git-author:
Sebastian Huber <sebastian.huber@…> (11/09/18 06:54:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/12/18 12:25:42)
Message:

no_cpu: Remove use of proc_ptr

Update #3585.

Location:
cpukit/score/cpu/no_cpu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/no_cpu/cpu.c

    r3faa8459 rd997aa1  
    5252
    5353void _CPU_ISR_install_raw_handler(
    54   uint32_t    vector,
    55   proc_ptr    new_handler,
    56   proc_ptr  *old_handler
     54  uint32_t             vector,
     55  CPU_ISR_raw_handler  new_handler,
     56  CPU_ISR_raw_handler *old_handler
    5757)
    5858{
     
    6464
    6565void _CPU_ISR_install_vector(
    66   uint32_t    vector,
    67   proc_ptr    new_handler,
    68   proc_ptr  *old_handler
     66  uint32_t         vector,
     67  CPU_ISR_handler  new_handler,
     68  CPU_ISR_handler *old_handler
    6969)
    7070{
    71    *old_handler = _ISR_Vector_table[ vector ];
     71  CPU_ISR_raw_handler ignored;
    7272
    73    /*
    74     *  If the interrupt vector table is a table of pointer to isr entry
    75     *  points, then we need to install the appropriate RTEMS interrupt
    76     *  handler for this vector number.
    77     */
     73  *old_handler = _ISR_Vector_table[ vector ];
    7874
    79    _CPU_ISR_install_raw_handler( vector, new_handler, old_handler );
     75  /*
     76   *  If the interrupt vector table is a table of pointer to isr entry
     77   *  points, then we need to install the appropriate RTEMS interrupt
     78   *  handler for this vector number.
     79   */
    8080
    81    /*
    82     *  We put the actual user ISR address in '_ISR_vector_table'.  This will
    83     *  be used by the _ISR_Handler so the user gets control.
    84     */
     81  _CPU_ISR_install_raw_handler( vector, _ISR_Handler, &ignored );
    8582
    86     _ISR_Vector_table[ vector ] = new_handler;
     83  /*
     84   *  We put the actual user ISR address in '_ISR_vector_table'.  This will
     85   *  be used by the _ISR_Handler so the user gets control.
     86   */
     87
     88   _ISR_Vector_table[ vector ] = new_handler;
    8789}
    8890
  • cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h

    r3faa8459 rd997aa1  
    977977void _CPU_Initialize(void);
    978978
     979typedef void ( *CPU_ISR_raw_handler )( void );
     980
    979981/**
    980982 * @ingroup CPUInterrupt
     
    982984 * This routine installs a "raw" interrupt handler directly into the
    983985 * processor's vector table.
     986 *
     987 * This routine is not used by architecture-independent code and thus optional.
    984988 *
    985989 * @param[in] vector is the vector number
     
    992996 */
    993997void _CPU_ISR_install_raw_handler(
    994   uint32_t    vector,
    995   proc_ptr    new_handler,
    996   proc_ptr  *old_handler
     998  uint32_t             vector,
     999  CPU_ISR_raw_handler  new_handler,
     1000  CPU_ISR_raw_handler *old_handler
    9971001);
    9981002
     1003typedef void ( *CPU_ISR_handler )( uint32_t );
     1004
    9991005/**
    10001006 * @ingroup CPUInterrupt
    10011007 *
    10021008 * This routine installs an interrupt vector.
     1009 *
     1010 * This routine is only used by architecture-independent code if
     1011 * CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE, otherwise it is optional.
    10031012 *
    10041013 * @param[in] vector is the vector number
     
    10111020 */
    10121021void _CPU_ISR_install_vector(
    1013   uint32_t    vector,
    1014   proc_ptr    new_handler,
    1015   proc_ptr  *old_handler
     1022  uint32_t         vector,
     1023  CPU_ISR_handler  new_handler,
     1024  CPU_ISR_handler *old_handler
    10161025);
    10171026
Note: See TracChangeset for help on using the changeset viewer.