Changeset 0e16fa45 in rtems


Ignore:
Timestamp:
Nov 8, 2018, 2:47:42 PM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5c6edee
Parents:
3c6a6e8
git-author:
Sebastian Huber <sebastian.huber@…> (11/08/18 14:47:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/12/18 12:25:43)
Message:

lm32: Remove use of proc_ptr

Update #3585.

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

Legend:

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

    r3c6a6e8 r0e16fa45  
    5757}
    5858
    59 /*
    60  *  _CPU_ISR_install_raw_handler
    61  *
    62  *  LM32 Specific Information:
    63  *
    64  *  XXX document implementation including references if appropriate
    65  */
    66 
    67 void _CPU_ISR_install_raw_handler(
    68   uint32_t    vector,
    69   proc_ptr    new_handler,
    70   proc_ptr   *old_handler
    71 )
    72 {
    73   /*
    74    *  This is where we install the interrupt handler into the "raw" interrupt
    75    *  table used by the CPU to dispatch interrupt handlers.
    76    */
    77 }
    78 
    7959void _CPU_ISR_install_vector(
    80   uint32_t    vector,
    81   proc_ptr    new_handler,
    82   proc_ptr  *old_handler
     60  uint32_t         vector,
     61  CPU_ISR_handler  new_handler,
     62  CPU_ISR_handler *old_handler
    8363)
    8464{
    8565   *old_handler = _ISR_Vector_table[ vector ];
    86 
    87    /*
    88     *  If the interrupt vector table is a table of pointer to isr entry
    89     *  points, then we need to install the appropriate RTEMS interrupt
    90     *  handler for this vector number.
    91     */
    92 
    93    _CPU_ISR_install_raw_handler( vector, new_handler, old_handler );
    9466
    9567   /*
  • cpukit/score/cpu/lm32/include/rtems/score/cpu.h

    r3c6a6e8 r0e16fa45  
    691691/**@{**/
    692692
    693 /**
    694  * This routine installs a "raw" interrupt handler directly into the
    695  * processor's vector table.
    696  *
    697  * @param[in] vector is the vector number
    698  * @param[in] new_handler is the raw ISR handler to install
    699  * @param[in] old_handler is the previously installed ISR Handler
    700  *
    701  * Port Specific Information:
    702  *
    703  * XXX document implementation including references if appropriate
    704  */
    705 void _CPU_ISR_install_raw_handler(
    706   uint32_t    vector,
    707   proc_ptr    new_handler,
    708   proc_ptr   *old_handler
    709 );
    710 
    711 /**
    712  * This routine installs an interrupt vector.
    713  *
    714  * @param[in] vector is the vector number
    715  * @param[in] new_handler is the RTEMS ISR handler to install
    716  * @param[in] old_handler is the previously installed ISR Handler
    717  *
    718  * Port Specific Information:
    719  *
    720  * XXX document implementation including references if appropriate
    721  */
     693typedef void ( *CPU_ISR_raw_handler )( void );
     694
     695RTEMS_INLINE_ROUTINE void _CPU_ISR_install_raw_handler(
     696  uint32_t             vector,
     697  CPU_ISR_raw_handler  new_handler,
     698  CPU_ISR_raw_handler *old_handler
     699)
     700{
     701  /* TODO */
     702}
     703
     704typedef void ( *CPU_ISR_handler )( uint32_t );
     705
    722706void _CPU_ISR_install_vector(
    723   uint32_t    vector,
    724   proc_ptr    new_handler,
    725   proc_ptr  *old_handler
     707  uint32_t         vector,
     708  CPU_ISR_handler  new_handler,
     709  CPU_ISR_handler *old_handler
    726710);
    727711
Note: See TracChangeset for help on using the changeset viewer.