Changeset 5c6edee in rtems for cpukit/score/cpu/m68k/cpu.c


Ignore:
Timestamp:
Nov 8, 2018, 2:44:56 PM (7 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b6be8f33
Parents:
0e16fa45
git-author:
Sebastian Huber <sebastian.huber@…> (11/08/18 14:44:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/12/18 12:25:43)
Message:

m68k: Remove use of proc_ptr

Update #3585.

File:
1 edited

Legend:

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

    r0e16fa45 r5c6edee  
    5151int (*_FPSP_install_raw_handler)(
    5252  uint32_t   vector,
    53   proc_ptr new_handler,
    54   proc_ptr *old_handler
     53  CPU_ISR_raw_handler new_handler,
     54  CPU_ISR_raw_handler *old_handler
    5555);
    5656#endif
     
    9898}
    9999
    100 /*
    101  *  _CPU_ISR_install_raw_handler
    102  */
    103 
    104100void _CPU_ISR_install_raw_handler(
    105   uint32_t    vector,
    106   proc_ptr    new_handler,
    107   proc_ptr  *old_handler
     101  uint32_t             vector,
     102  CPU_ISR_raw_handler  new_handler,
     103  CPU_ISR_raw_handler *old_handler
    108104)
    109105{
    110   proc_ptr *interrupt_table = NULL;
     106#if ( M68K_HAS_VBR == 1 )
     107  CPU_ISR_raw_handler *interrupt_table = NULL;
     108#else
     109  _CPU_ISR_handler_entry *interrupt_table = NULL;
     110#endif
    111111
    112112#if (M68K_HAS_FPSP_PACKAGE == 1)
     
    142142   */
    143143
    144   *old_handler = (proc_ptr) _CPU_ISR_jump_table[vector].isr_handler;
     144  *old_handler = (CPU_ISR_raw_handler) _CPU_ISR_jump_table[vector].isr_handler;
    145145  _CPU_ISR_jump_table[vector].isr_handler = (uint32_t) new_handler;
    146146  if ( (uint32_t) interrupt_table != 0xFFFFFFFF )
    147     interrupt_table[ vector ] = (proc_ptr) &_CPU_ISR_jump_table[vector];
     147    interrupt_table[ vector ] = &_CPU_ISR_jump_table[vector];
    148148#endif /* M68K_HAS_VBR */
    149149}
    150150
    151151void _CPU_ISR_install_vector(
    152   uint32_t    vector,
    153   proc_ptr    new_handler,
    154   proc_ptr  *old_handler
     152  uint32_t         vector,
     153  CPU_ISR_handler  new_handler,
     154  CPU_ISR_handler *old_handler
    155155)
    156156{
    157   proc_ptr ignored = 0;  /* to avoid warning */
     157  CPU_ISR_raw_handler ignored = 0;  /* to avoid warning */
    158158
    159159  *old_handler = _ISR_Vector_table[ vector ];
Note: See TracChangeset for help on using the changeset viewer.