Changeset 264e128 in rtems


Ignore:
Timestamp:
Nov 9, 2018, 7:04:23 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
12dfa5e2
Parents:
b6be8f33
git-author:
Sebastian Huber <sebastian.huber@…> (11/09/18 07:04:23)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/12/18 12:25:43)
Message:

moxie: Remove use of proc_ptr

Update #3585.

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

Legend:

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

    rb6be8f33 r264e128  
    5050}
    5151
    52 /*
    53  *  _CPU_ISR_install_raw_handler
    54  */
    55 void _CPU_ISR_install_raw_handler(
    56   uint32_t    vector,
    57   proc_ptr    new_handler,
    58   proc_ptr   *old_handler
     52void _CPU_ISR_install_vector(
     53  uint32_t         vector,
     54  CPU_ISR_handler  new_handler,
     55  CPU_ISR_handler *old_handler
    5956)
    6057{
    61   /*
    62    *  This is where we install the interrupt handler into the "raw" interrupt
    63    *  table used by the CPU to dispatch interrupt handlers.
    64    *  Use Debug level IRQ Handlers
    65    */
    66   /* H8BD_Install_IRQ(vector,new_handler,old_handler); */
    67 }
    68 
    69 /*
    70  *  _CPU_ISR_install_vector
    71  *
    72  *  This kernel routine installs the RTEMS handler for the
    73  *  specified vector.
    74  *
    75  *  Input parameters:
    76  *    vector      - interrupt vector number
    77  *    old_handler - former ISR for this vector number
    78  *    new_handler - replacement ISR for this vector number
    79  *
    80  *  Output parameters:  NONE
    81  *
    82  */
    83 void _CPU_ISR_install_vector(
    84   uint32_t    vector,
    85   proc_ptr    new_handler,
    86   proc_ptr   *old_handler
    87 )
    88 {
    89    *old_handler = _ISR_Vector_table[ vector ];
    90 
    91    /*
    92     *  If the interrupt vector table is a table of pointer to isr entry
    93     *  points, then we need to install the appropriate RTEMS interrupt
    94     *  handler for this vector number.
    95     */
    96 
    97    _CPU_ISR_install_raw_handler( vector, new_handler, old_handler );
    98 
    99    /*
    100     *  We put the actual user ISR address in '_ISR_vector_table'.  This will
    101     *  be used by the _ISR_Handler so the user gets control.
    102     */
    103 
    104     _ISR_Vector_table[ vector ] = new_handler;
     58  *old_handler = _ISR_Vector_table[ vector ];
     59  _ISR_Vector_table[ vector ] = new_handler;
    10560}
    10661
  • cpukit/score/cpu/moxie/include/rtems/score/cpu.h

    rb6be8f33 r264e128  
    479479    (void) _isr;   /* avoid warning for being unused */            \
    480480    _stack = ((uintptr_t)(_stack_base)) + (_size) - 8;             \
    481     *((proc_ptr *)(_stack)) = (_entry_point);                      \
     481    *((void (**)(void))(_stack)) = (_entry_point);                 \
    482482    _stack -= 4;                                                   \
    483483    (_the_context)->fp = (void *)_stack;                           \
     
    539539void _CPU_Initialize(void);
    540540
    541 /*
    542  *  _CPU_ISR_install_raw_handler
    543  *
    544  *  This routine installs a "raw" interrupt handler directly into the
    545  *  processor's vector table.
    546  *
    547  *  MOXIE Specific Information:
    548  *
    549  *  XXX
    550  */
    551 void _CPU_ISR_install_raw_handler(
    552   uint32_t    vector,
    553   proc_ptr    new_handler,
    554   proc_ptr   *old_handler
    555 );
    556 
    557 /*
    558  *  _CPU_ISR_install_vector
    559  *
    560  *  This routine installs an interrupt vector.
    561  *
    562  *  MOXIE Specific Information:
    563  *
    564  *  XXX
    565  */
     541typedef void ( *CPU_ISR_handler )( uint32_t );
     542
    566543void _CPU_ISR_install_vector(
    567   uint32_t    vector,
    568   proc_ptr    new_handler,
    569   proc_ptr  *old_handler
     544  uint32_t         vector,
     545  CPU_ISR_handler  new_handler,
     546  CPU_ISR_handler *old_handler
    570547);
    571548
Note: See TracChangeset for help on using the changeset viewer.