Changeset 8203db45 in rtems


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

bfin: Remove use of proc_ptr

Update #3585.

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

Legend:

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

    r685aa28 r8203db45  
    5757
    5858
    59   proc_ptr ignored;
     59  CPU_ISR_raw_handler ignored;
    6060
    6161#if 0
     
    102102}
    103103
    104 /*
    105  *  _CPU_ISR_install_raw_handler
    106  *
    107  *  NO_CPU Specific Information:
    108  *
    109  *  XXX document implementation including references if appropriate
    110  */
    111 
    112104void _CPU_ISR_install_raw_handler(
    113   uint32_t    vector,
    114   proc_ptr    new_handler,
    115   proc_ptr  *old_handler
     105  uint32_t             vector,
     106  CPU_ISR_raw_handler  new_handler,
     107  CPU_ISR_raw_handler *old_handler
    116108)
    117109{
    118    proc_ptr *interrupt_table = NULL;
     110   CPU_ISR_raw_handler *interrupt_table;
     111
    119112  /*
    120113   *  This is where we install the interrupt handler into the "raw" interrupt
     
    130123}
    131124
    132 /*
    133  *  _CPU_ISR_install_vector
    134  *
    135  *  This kernel routine installs the RTEMS handler for the
    136  *  specified vector.
    137  *
    138  *  Input parameters:
    139  *    vector      - interrupt vector number
    140  *    old_handler - former ISR for this vector number
    141  *    new_handler - replacement ISR for this vector number
    142  *
    143  *  Output parameters:  NONE
    144  *
    145  *
    146  *  NO_CPU Specific Information:
    147  *
    148  *  XXX document implementation including references if appropriate
    149  */
    150 
    151125void _CPU_ISR_install_vector(
    152   uint32_t    vector,
    153   proc_ptr    new_handler,
    154   proc_ptr  *old_handler
     126  uint32_t         vector,
     127  CPU_ISR_handler  new_handler,
     128  CPU_ISR_handler *old_handler
    155129)
    156130{
    157    proc_ptr ignored;
     131   CPU_ISR_raw_handler ignored;
    158132
    159133   *old_handler = _ISR_Vector_table[ vector ];
  • cpukit/score/cpu/bfin/include/rtems/score/cpu.h

    r685aa28 r8203db45  
    657657void _CPU_Initialize(void);
    658658
    659 /**
    660  * @ingroup CPUInterrupt
    661  * This routine installs a "raw" interrupt handler directly into the
    662  * processor's vector table.
    663  *
    664  * @param[in] vector is the vector number
    665  * @param[in] new_handler is the raw ISR handler to install
    666  * @param[in] old_handler is the previously installed ISR Handler
    667  *
    668  * Port Specific Information:
    669  *
    670  * XXX document implementation including references if appropriate
    671  */
     659typedef void ( *CPU_ISR_raw_handler )( void );
     660
    672661void _CPU_ISR_install_raw_handler(
    673   uint32_t    vector,
    674   proc_ptr    new_handler,
    675   proc_ptr  *old_handler
     662  uint32_t             vector,
     663  CPU_ISR_raw_handler  new_handler,
     664  CPU_ISR_raw_handler *old_handler
    676665);
    677666
    678 /**
    679  * @ingroup CPUInterrupt
    680  * This routine installs an interrupt vector.
    681  *
    682  * @param[in] vector is the vector number
    683  * @param[in] new_handler is the RTEMS ISR handler to install
    684  * @param[in] old_handler is the previously installed ISR Handler
    685  *
    686  * Port Specific Information:
    687  *
    688  * XXX document implementation including references if appropriate
    689  */
     667typedef void ( *CPU_ISR_handler )( uint32_t );
     668
    690669void _CPU_ISR_install_vector(
    691   uint32_t    vector,
    692   proc_ptr    new_handler,
    693   proc_ptr  *old_handler
     670  uint32_t         vector,
     671  CPU_ISR_handler  new_handler,
     672  CPU_ISR_handler *old_handler
    694673);
    695674
Note: See TracChangeset for help on using the changeset viewer.