Changeset 54c5ffc in rtems for cpukit


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

or1k: Remove use of proc_ptr

Update #3585.

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

Legend:

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

    r12dfa5e2 r54c5ffc  
    7070
    7171void _CPU_ISR_install_raw_handler(
    72   uint32_t   vector,
    73   proc_ptr    new_handler,
    74   proc_ptr  *old_handler
     72  uint32_t             vector,
     73  CPU_ISR_raw_handler  new_handler,
     74  CPU_ISR_raw_handler *old_handler
    7575)
    7676{
    77 }
    78 
    79 void _CPU_ISR_install_vector(
    80   uint32_t    vector,
    81   proc_ptr    new_handler,
    82   proc_ptr   *old_handler
    83 )
    84 {
    85    proc_ptr *table =
    86      (proc_ptr *) bsp_start_vector_table_begin;
    87    proc_ptr current_handler;
     77   CPU_ISR_raw_handler *table =
     78     (CPU_ISR_raw_handler *) bsp_start_vector_table_begin;
     79   CPU_ISR_raw_handler current_handler;
    8880
    8981   ISR_Level level;
     
    9587  /* The current handler is now the old one */
    9688  if (old_handler != NULL) {
    97     *old_handler = (proc_ptr) current_handler;
     89    *old_handler = current_handler;
    9890  }
    9991
  • cpukit/score/cpu/or1k/include/rtems/score/cpu.h

    r12dfa5e2 r54c5ffc  
    591591);
    592592
    593 /*
    594  *  _CPU_ISR_install_raw_handler
    595  *
    596  *  This routine installs a "raw" interrupt handler directly into the
    597  *  processor's vector table.
    598  *
    599  */
     593typedef void ( *CPU_ISR_raw_handler )( uint32_t, CPU_Exception_frame * );
    600594
    601595void _CPU_ISR_install_raw_handler(
    602   uint32_t    vector,
    603   proc_ptr    new_handler,
    604   proc_ptr  *old_handler
     596  uint32_t             vector,
     597  CPU_ISR_raw_handler  new_handler,
     598  CPU_ISR_raw_handler *old_handler
    605599);
    606600
    607 /*
    608  *  _CPU_ISR_install_vector
    609  *
    610  *  This routine installs an interrupt vector.
    611  *
    612  *  NO_CPU Specific Information:
    613  *
    614  *  XXX document implementation including references if appropriate
    615  */
    616 
    617 void _CPU_ISR_install_vector(
    618   uint32_t    vector,
    619   proc_ptr   new_handler,
    620   proc_ptr   *old_handler
    621 );
     601typedef void ( *CPU_ISR_handler )( uint32_t );
     602
     603RTEMS_INLINE_ROUTINE void _CPU_ISR_install_vector(
     604  uint32_t         vector,
     605  CPU_ISR_handler  new_handler,
     606  CPU_ISR_handler *old_handler
     607)
     608{
     609  _CPU_ISR_install_raw_handler(
     610    vector,
     611    (CPU_ISR_raw_handler) new_handler,
     612    (CPU_ISR_raw_handler *) old_handler
     613  );
     614}
    622615
    623616void *_CPU_Thread_Idle_body( uintptr_t ignored );
Note: See TracChangeset for help on using the changeset viewer.