Changeset 3c6a6e8 in rtems


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

i386: Remove use of proc_ptr

Update #3585.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bsps/i386/shared/irq/idt.c

    ra043ff8 r3c6a6e8  
    105105
    106106void _CPU_ISR_install_vector (uint32_t vector,
    107                               proc_ptr hdl,
    108                               proc_ptr * oldHdl)
     107                              CPU_ISR_handler hdl,
     108                              CPU_ISR_handler * oldHdl)
    109109{
    110110    interrupt_gate_descriptor*  idt_entry_tbl;
     
    122122    }
    123123    rtems_interrupt_lock_acquire(&rtems_idt_access_lock, &lock_context);
    124     * ((unsigned int *) oldHdl) = idt_entry_tbl[vector].low_offsets_bits |
    125         (idt_entry_tbl[vector].high_offsets_bits << 16);
     124    *oldHdl = (CPU_ISR_handler) (idt_entry_tbl[vector].low_offsets_bits |
     125        (idt_entry_tbl[vector].high_offsets_bits << 16));
    126126
    127127    create_interrupt_gate_descriptor(&new,  hdl);
  • cpukit/score/cpu/i386/cpu.c

    ra043ff8 r3c6a6e8  
    172172  _stack  = ((uint32_t)(_stack_base)) + (_size);
    173173  _stack &= ~ (CPU_STACK_ALIGNMENT - 1);
    174   _stack -= 2*sizeof(proc_ptr*); /* see above for why we need to do this */
    175   *((proc_ptr *)(_stack)) = (_entry_point);
     174  _stack -= 2*sizeof(void *); /* see above for why we need to do this */
     175  *((void (**)(void))(_stack)) = (_entry_point);
    176176  the_context->ebp     = (void *) 0;
    177177  the_context->esp     = (void *) _stack;
  • cpukit/score/cpu/i386/include/rtems/score/cpu.h

    ra043ff8 r3c6a6e8  
    540540void _CPU_Initialize(void);
    541541
    542 /*
    543  *  _CPU_ISR_install_raw_handler
    544  *
    545  *  This routine installs a "raw" interrupt handler directly into the
    546  *  processor's vector table.
    547  */
    548 
    549 void _CPU_ISR_install_raw_handler(
    550   uint32_t    vector,
    551   proc_ptr    new_handler,
    552   proc_ptr   *old_handler
    553 );
    554 
    555 /*
    556  *  _CPU_ISR_install_vector
    557  *
    558  *  This routine installs an interrupt vector.
    559  */
     542typedef void ( *CPU_ISR_handler )( void );
    560543
    561544void _CPU_ISR_install_vector(
    562   uint32_t    vector,
    563   proc_ptr    new_handler,
    564   proc_ptr  *old_handler
     545  uint32_t         vector,
     546  CPU_ISR_handler  new_handler,
     547  CPU_ISR_handler *old_handler
    565548);
    566549
Note: See TracChangeset for help on using the changeset viewer.