Changeset 685aa28 in rtems for cpukit


Ignore:
Timestamp:
Nov 9, 2018, 7:01:53 AM (11 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
8203db45
Parents:
d997aa1
git-author:
Sebastian Huber <sebastian.huber@…> (11/09/18 07:01:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/12/18 12:25:42)
Message:

arm: Remove use of proc_ptr

Update #3585.

Location:
cpukit/score/cpu/arm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/arm/armv7m-isr-vector-install.c

    rd997aa1 r685aa28  
    2929
    3030void _CPU_ISR_install_vector(
    31   uint32_t vector,
    32   proc_ptr new_handler,
    33   proc_ptr *old_handler
     31  uint32_t         vector,
     32  CPU_ISR_handler new_handler,
     33  CPU_ISR_handler *old_handler
    3434)
    3535{
  • cpukit/score/cpu/arm/cpu.c

    rd997aa1 r685aa28  
    145145
    146146void _CPU_ISR_install_vector(
    147   uint32_t vector,
    148   proc_ptr new_handler,
    149   proc_ptr *old_handler
     147  uint32_t         vector,
     148  CPU_ISR_handler new_handler,
     149  CPU_ISR_handler *old_handler
    150150)
    151151{
    152152  /* Redirection table starts at the end of the vector table */
    153   volatile uint32_t *table = (volatile uint32_t *) (MAX_EXCEPTIONS * 4);
     153  CPU_ISR_handler *table = (CPU_ISR_handler *) (MAX_EXCEPTIONS * 4);
    154154
    155   uint32_t current_handler = table [vector];
     155  CPU_ISR_handler current_handler = table [vector];
    156156
    157157  /* The current handler is now the old one */
    158158  if (old_handler != NULL) {
    159     *old_handler = (proc_ptr) current_handler;
     159    *old_handler = current_handler;
    160160  }
    161161
    162162  /* Write only if necessary to avoid writes to a maybe read-only memory */
    163   if (current_handler != (uint32_t) new_handler) {
    164     table [vector] = (uint32_t) new_handler;
     163  if (current_handler != new_handler) {
     164    table [vector] = new_handler;
    165165  }
    166166}
  • cpukit/score/cpu/arm/include/rtems/score/cpu.h

    rd997aa1 r685aa28  
    465465void _CPU_Initialize( void );
    466466
     467typedef void ( *CPU_ISR_handler )( void );
     468
    467469void _CPU_ISR_install_vector(
    468   uint32_t vector,
    469   proc_ptr new_handler,
    470   proc_ptr *old_handler
     470  uint32_t         vector,
     471  CPU_ISR_handler new_handler,
     472  CPU_ISR_handler *old_handler
    471473);
    472474
Note: See TracChangeset for help on using the changeset viewer.